Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.0, 4.2.1
-
Fix Version/s: 4.2.3
-
Component/s: Core CiviCRM
-
Labels:None
Description
Notices are being generated when displaying a list of groups (AJAX call) ...
Notice: Undefined index: org_info in CRM_Contact_BAO_Group::getGroupListSelector() (line 661 of /var/www/citybibleforum/sites/all/modules/civicrm/CRM/Contact/BAO/Group.php).
It happens because (at line 807 in that file) $groupOrg is FALSE. This variable defaults to FALSE, and is only TRUE when this site is a multisite and the current user has permission "administer Multiple Organizations". When it is FALSE, the 'org_info' element will be unset and a Notice is generated.
The attached patch sets the 'org_info' element to NULL. This prevents the Notice being generated, yet preserves the current behaviour (the 'org_info' column is hidden when all it's cells are NULL).