Skip to content
Snippets Groups Projects
Commit 2f90c431 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

fixes for custom field: checkbox saving using fb

parent 35483429
Branches
Tags
No related merge requests found
......@@ -259,7 +259,12 @@ trait DAOActionTrait {
// Uglify checkbox values for the sake of CustomField::formatCustomField()
if ($field['html_type'] === 'CheckBox' && is_array($value)) {
$value = array_fill_keys($value, TRUE);
if (empty($value)) {
$value = '';
}
else {
$value = array_fill_keys($value, TRUE);
}
}
// Match contact id to strings like "user_contact_id"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment