Details
-
Type: Patch
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.2.8
-
Fix Version/s: 2.2.10
-
Component/s: Core CiviCRM
-
Labels:None
Description
When I go to /civicrm/contact/search?reset=1&force=1&gid=26 as a user with a particular user role, then I get the following fatal error:
Fatal error: Unsupported operand types in CRM/Contact/Form/Search.php on line 243
It looks like for that particular user role / set of permissions, CRM_Contact_Task::permissionedTaskTitles() returns null, and not an empty array, triggering the above error message. The attached patch fixes the problem by initialising $tasks to be an empty array at the beginning of the function.
Cheers,
Stella