Skip to content
Snippets Groups Projects
Commit 4e4193c6 authored by Adrien Faveraux's avatar Adrien Faveraux
Browse files

Sanitise Fieldname

parent e8057e19
No related branches found
No related tags found
No related merge requests found
......@@ -340,6 +340,8 @@ class Reports_Record_Model extends Vtiger_Record_Model {
$selectedColumns[$module.'_'.$translatedFieldLabel] = $column;
} else if(CheckFieldPermission($fieldName, $module) == 'true') {
// we should affix key with module name to differentiate same labels from diff modules
$translatedFieldLabel = str_replace('"', "", $translatedFieldLabel);
$translatedFieldLabel = str_replace("'", "", $translatedFieldLabel);
$selectedColumns[$module.'_'.$translatedFieldLabel] = $column;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment