Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/core#2524 Fix seriazliation parameter exception in APIv3 #22934

Merged
merged 1 commit into from
Mar 13, 2022

Conversation

adriano66
Copy link
Contributor

Overview

This fixes the "'0' is not a valid option for field serialize" exception in APIv3.
0 is a valid, default value set in the DB.
This allows passing whole custom field data as a parameter
to the custom field update method without getting an exception.

https://lab.civicrm.org/dev/core/-/issues/2524

@civibot
Copy link

civibot bot commented Mar 13, 2022

(Standard links)

@civibot civibot bot added the master label Mar 13, 2022
CRM/Core/SelectValues.php Outdated Show resolved Hide resolved
@colemanw
Copy link
Member

This looks good @adriano66 - are you able to squash these 4 commits before we merge?

This fixes the "'0' is not a valid option for field serialize" exception
in APIv3 as 0 is a valid, default value set in the DB
This allows passing whole custom field data as a parameter
to the custom field update method without getting an exception

Co-authored-by: colemanw <coleman@civicrm.org>
@adriano66
Copy link
Contributor Author

@colemanw Sure, done.

@colemanw colemanw merged commit 80ab9b5 into civicrm:master Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants