From 071535396037b1c6b710d91ecff045f178acb58e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Fri, 25 Mar 2016 19:42:42 +0100 Subject: [PATCH] FIX A not enabled field for list must not into fields to add --- htdocs/core/class/html.form.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 3594e6214ef..0123d539f50 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4838,7 +4838,10 @@ class Form foreach($array as $key => $val) { - if (isset($val['enabled']) && ! $val['enabled']) + /* var_dump($val); + var_dump(array_key_exists('enabled', $val)); + var_dump(!$val['enabled']);*/ + if (array_key_exists('enabled', $val) && ! $val['enabled']) { unset($array[$key]); // We don't want this field continue; -- GitLab