dev/core#3063 APIv3 - Fix numeric option matching
authorColeman Watts <coleman@civicrm.org>
Wed, 9 Feb 2022 16:35:53 +0000 (11:35 -0500)
committerColeman Watts <coleman@civicrm.org>
Thu, 10 Feb 2022 21:02:05 +0000 (16:02 -0500)
commite87b66d406d8a11ffc083839babace9c13cb8104
treebcb6c4cc4b3472cece22c87c77a6b18e6aec30b5
parent161530c4a219dfb8329a447943b25d00ae13beb2
dev/core#3063 APIv3 - Fix numeric option matching

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
api/v3/utils.php
tests/phpunit/api/v3/FinancialTypeTest.php