FIX: Set extrafield value of multiselect type
This commit is contained in:
parent
53eb370c4e
commit
f1c1431693
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user