From 7a723f52502910efb3edf59172ec2b2fb17f18d3 Mon Sep 17 00:00:00 2001 From: Mike Koch Date: Mon, 27 Mar 2017 21:43:14 -0400 Subject: [PATCH] Fixes #504 set readonly field names different to prevent incorrect values --- admin/custom_fields.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/custom_fields.php b/admin/custom_fields.php index 3b19b4ed..f23c7f35 100755 --- a/admin/custom_fields.php +++ b/admin/custom_fields.php @@ -222,7 +222,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
-
@@ -231,7 +231,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
-
@@ -1202,8 +1202,8 @@ function cf_validate() break; case 'readonly': - $max_length = hesk_POST('max_length'); - $value = hesk_POST('default_value'); + $max_length = hesk_POST('readonly_max_length'); + $value = hesk_POST('readonly_default_value'); $cf['value'] = array('default_value' => $value, 'max_length' => $max_length); break;