Notice fix
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 6 Oct 2023 02:11:14 +0000 (15:11 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 6 Oct 2023 02:11:14 +0000 (15:11 +1300)
CRM/Core/BAO/CustomField.php

index 79ef2f16f7d35da691be6cb7e667a09c57ff9da2..619dbdb042af079e4b7ba49ceb6071671c24a1c0 100644 (file)
@@ -860,7 +860,7 @@ class CRM_Core_BAO_CustomField extends CRM_Core_DAO_CustomField {
           )
           && (
             $field['custom_group_id.extends'] === $extends
-            || ($field['extends'] === 'Contact' && in_array($extends, ['Individual', 'Organization', 'Household']))
+            || ($field['custom_group_id.extends'] === 'Contact' && in_array($extends, ['Individual', 'Organization', 'Household']))
           )
         ) {
           \Civi::$statics[__CLASS__][__FUNCTION__][$cacheKey][(int) $field['id']] = $field;