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#2423 Fix quasi-regression around serialized custom fields #19698

Merged
merged 2 commits into from
Mar 1, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

dev/core#2423 Fix quasi-regression around serialized custom fields

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

Before

2 issues - first create a custom field of type 'Integer' with html 'drop down select' and choose 'mutliple.
Issue 1 - the table with be created with the fields having the mysql type of Integer
Issue 2 - the field validation will expect the field to be an integer and reject concatenated values

After

Much better

Technical Details

Comments

@colemanw

@civibot
Copy link

civibot bot commented Mar 1, 2021

(Standard links)

@civibot civibot bot added the 5.35 label Mar 1, 2021
@seamuslee001
Copy link
Contributor

@eileenmcnaughton these 2 failures look like they relate

CRM_Core_BAO_CustomValueTableSetGetTest.testSetGetValuesDate
CRM_Core_BAO_CustomValueTableSetGetTest.testSetGetValuesYesNoRadio

@eileenmcnaughton
Copy link
Contributor Author

@seamuslee001 I think I got it - hard to imagine there isn't a better fix.....

@colemanw
Copy link
Member

colemanw commented Mar 1, 2021

I reviewed the code and this indeed looks like the right fix, as it correctly applies the serialized field type (varchar) regardless of FK.
Tests are passing (except for a weird leap-year bug in the test suite).

@colemanw colemanw merged commit 9db2113 into civicrm:5.35 Mar 1, 2021
@colemanw colemanw deleted the custom branch March 1, 2021 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants