Skip to content
Snippets Groups Projects
Commit 25de3cb7 authored by Uma's avatar Uma
Browse files

Merge branch 'Smarty_typo_addressed' into 'master'

Fixes #1191 typo in viewer class addressed

See merge request !497
parents 6bc506f7 2e14d8ca
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
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