Skip to content
Snippets Groups Projects

Fixes #1191 typo in viewer class addressed

Merged Uma requested to merge uma.s/vtigercrm:Smarty_typo_addressed into master
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -144,7 +144,7 @@ class Vtiger_Viewer extends SmartyBC {
public function assign($tpl_var, $value = null, $nocache = false) {
// Reject unexpected value assignments.
if ($tpl_var == 'SELECTED_MENU_CATEGORY') {
if ($val && preg_match("/[^a-zA-Z0-9_-]/", $val, $m)) {
if ($value && preg_match("/[^a-zA-Z0-9_-]/", $value, $m)) {
return;
}
}
Loading