Skip to content

Add a check if the group ID is array.

arnfrench requested to merge arnfrench/multisite:parent-array into master

Throws an error saying:

TypeError: array_map(): Argument #2 ($array) must be of type array, string given in array_map() (line 2941 of /var/www/web/israelscouts.org-d9/vendor/civicrm/civicrm-core/CRM/Core/DAO.php).

It can be reproduced by the following steps:

  1. Go to Search > Find Contacts.
  2. Search for a contact.
  3. Tick the checkbox for any contact and select "Group - create smart group" under "Actions".
  4. Error is thrown.
Edited by arnfrench

Merge request reports

Loading