Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
CiviCRM Core
Commits
2f90c431
Commit
2f90c431
authored
10 months ago
by
Kurund Jalmi
Browse files
Options
Downloads
Patches
Plain Diff
fixes for custom field: checkbox saving using fb
parent
35483429
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Civi/Api4/Generic/Traits/DAOActionTrait.php
+6
-1
6 additions, 1 deletion
Civi/Api4/Generic/Traits/DAOActionTrait.php
with
6 additions
and
1 deletion
Civi/Api4/Generic/Traits/DAOActionTrait.php
+
6
−
1
View file @
2f90c431
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment