From 29b682d8109161356899b37a9752f3c7a93e0ead Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Wed, 9 Dec 2020 10:35:30 +0100 Subject: [PATCH] fix extrafield checkbox from table (#CroudFounding_DarkJeff_2021) --- htdocs/core/actions_extrafields.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/actions_extrafields.inc.php b/htdocs/core/actions_extrafields.inc.php index 2b5b38441e0..7ba4d7d64b9 100644 --- a/htdocs/core/actions_extrafields.inc.php +++ b/htdocs/core/actions_extrafields.inc.php @@ -159,7 +159,7 @@ if ($action == 'add') $parameters = $param; $parameters_array = explode("\r\n", $parameters); //In sellist we have only one line and it can have come to do SQL expression - if ($type == 'sellist') { + if ($type == 'sellist' || $type == 'chkbxlst') { foreach ($parameters_array as $param_ligne) { $params['options'] = array($parameters=>null); @@ -338,7 +338,7 @@ if ($action == 'update') $parameters = $param; $parameters_array = explode("\r\n", $parameters); //In sellist we have only one line and it can have come to do SQL expression - if ($type == 'sellist') { + if ($type == 'sellist' || $type == 'chkbxlst') { foreach ($parameters_array as $param_ligne) { $params['options'] = array($parameters=>null);