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 04:23:47 +0000 (23:23 -0500)
commit5727486c1b257da5d00261481699fe91f25d2189
treec406b89dd75e0a11e6d75275eeafd0494236ed02
parentc27d6017f275ccb05da8113f8e7a1c1166ae170a
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` field, if positive integer given

The optimization was overly broad and had unintended side-effects
api/v3/utils.php
tests/phpunit/api/v3/FinancialTypeTest.php