Merge pull request #15713 from FHenry/fix_extrafield_chbx

NEW extrafield checkbox from table (#CrowdFunding_DarkJeff_2021)
This commit is contained in:
Laurent Destailleur 2020-12-09 22:04:31 +01:00 committed by GitHub
commit 44713825e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);