Merge pull request #6932 from atm-ph/fix_develop_get_extra_chkbxlst
Fix get extrafields value from getOptionalsFromPost give an error wit…
This commit is contained in:
commit
832e9ed15a
@ -1681,7 +1681,7 @@ class ExtraFields
|
||||
// Clean parameters
|
||||
$value_key=dol_mktime($_POST[$keysuffix."options_".$key.$keyprefix."hour"], $_POST[$keysuffix."options_".$key.$keyprefix."min"], 0, $_POST[$keysuffix."options_".$key.$keyprefix."month"], $_POST[$keysuffix."options_".$key.$keyprefix."day"], $_POST[$keysuffix."options_".$key.$keyprefix."year"]);
|
||||
}
|
||||
else if (in_array($key_type,array('checkbox')))
|
||||
else if (in_array($key_type,array('checkbox', 'chkbxlst')))
|
||||
{
|
||||
$value_arr=GETPOST($keysuffix."options_".$key.$keyprefix);
|
||||
// Make sure we get an array even if there's only one checkbox
|
||||
|
||||
Loading…
Reference in New Issue
Block a user