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
1 merge request!336Fix #1089 report Broken
......@@ -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