Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18511

Fix CRM_Core_BAO_CustomGroup::validateSubTypeByEntity()

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 4.7.7
    • Fix Version/s: None
    • Component/s: None
    • 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;

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              otetard Olivier Tétard
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: