FIX: Set extrafield value of multiselect type

This commit is contained in:
kkhelifa 2022-11-17 17:09:13 +01:00
parent 53eb370c4e
commit f1c1431693

View File

@ -5988,6 +5988,12 @@ abstract class CommonObject
dol_syslog('Error bad setup of extrafield', LOG_WARNING);
}
break;
case 'checkbox':
case 'chkbxlst':
if (is_array($this->array_options[$key])) {
$new_array_options[$key] = implode(',', $this->array_options[$key]);
}
break;
}
}
@ -6333,6 +6339,12 @@ abstract class CommonObject
}
break;
*/
case 'checkbox':
case 'chkbxlst':
if (is_array($this->array_options[$key])) {
$new_array_options[$key] = implode(',', $this->array_options[$key]);
}
break;
}
$this->db->begin();