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#3063 APIv3 - Fix numeric option matching #22751

Merged
merged 1 commit into from
Feb 11, 2022

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Feb 10, 2022

Backports the important bit of #22740 with a workaround to avoid the pitfalls that made it a boondoggle.

Fixes dev/core#3063.

Before: Option matching was skipped for all FK fields if a numeric value was given
After: Only skipped for campaign_id and payment_processor_id fields

Added payment_processor_id to the exception for the sake of this backport to make it pass tests.

Before: Option matching was skipped for all FK fields if a numeric value was given
After: Only skipped for `campaign_id` and `payment_processor_id` fields

The optimization was overly broad and had unintended side-effects
@civibot
Copy link

civibot bot commented Feb 10, 2022

(Standard links)

@civibot civibot bot added the 5.46 label Feb 10, 2022
@eileenmcnaughton eileenmcnaughton merged commit 5ecc1d5 into civicrm:5.46 Feb 11, 2022
@eileenmcnaughton eileenmcnaughton deleted the backportPseudoconstantFix branch February 11, 2022 03:54
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.

2 participants