replace undeclared class var with local var
authordemeritcowboy <demeritcowboy@hotmail.com>
Sat, 4 Nov 2023 14:57:29 +0000 (10:57 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Sat, 4 Nov 2023 14:57:29 +0000 (10:57 -0400)
CRM/Core/Form/Search.php

index b071a4c45f141f6beb7fb4e33b70c9fe4c2249f3..09d9d68280ed0a72f1188987076e9bcec8f028fa 100644 (file)
@@ -438,9 +438,9 @@ class CRM_Core_Form_Search extends CRM_Core_Form {
       return;
     }
 
-    $this->_group = CRM_Core_PseudoConstant::nestedGroup();
-    if ($this->_group) {
-      $this->add('select', 'group', $this->getGroupLabel(), $this->_group, FALSE,
+    $nestedGroup = CRM_Core_PseudoConstant::nestedGroup();
+    if ($nestedGroup) {
+      $this->add('select', 'group', $this->getGroupLabel(), $nestedGroup, FALSE,
         [
           'id' => 'group',
           'multiple' => 'multiple',