From 2078562ff2e084d9031de53e714d6fcd8b17f420 Mon Sep 17 00:00:00 2001 From: mattf Date: Thu, 5 Oct 2017 21:20:16 +0000 Subject: [PATCH] small fix for custom variables in custom reports admin git-svn-id: svn://192.168.202.10@2834 3d104415-ff17-0410-8863-d5cf3c621b8a --- www/vicidial/vicidial_custom_reports_admin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/vicidial/vicidial_custom_reports_admin.php b/www/vicidial/vicidial_custom_reports_admin.php index cc7fa8c9..17b7407f 100644 --- a/www/vicidial/vicidial_custom_reports_admin.php +++ b/www/vicidial/vicidial_custom_reports_admin.php @@ -14,7 +14,7 @@ # 170822-2313 - Added screen colors # 170823-1411 - Fixed delete bug # 170829-0040 - Added screen color settings -# 170930-0908 - Added custom variables +# 171002-2140 - Added capability to add/modify preset variables # $startMS = microtime(); @@ -390,7 +390,7 @@ function AddConstant() { } } if (new_variable_value=='') {new_variable_value=document.getElementById('new_preset_custom').value;} - new_variable_name=new_variable_name.replace(/[^- \.\:\/\@\_0-9a-zA-Z]/gi, ''); + new_variable_value=new_variable_value.replace(/[^- \.\:\/\@\_0-9a-zA-Z]/gi, ''); new_variable_value=encodeURIComponent(new_variable_value); current_constants+="&"+new_variable_name+"="+new_variable_value;