Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Duplicate
-
Affects Version/s: 4.7.7
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Documentation Required?:None
-
Funding Source:Contributed Code
Description
Fix regression introduced in commit: https://github.com/civicrm/civicrm-core/commit/79363422d47677e58596798ed26304c8c4b9953c.
`civicrm_api3('Contact', 'getoptions')` return an associative array. Here, we want to check the key values, so we need to add an `array_keys()` before `in_array`.
Olivier;