Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
civicrm_group_add() requires 'name' and 'id' to be passed in as params. It would be more natural to pass it the 'title', and moreover, CRM_Contact_BAO_Group::create() turns the title into a name and creates a new id.
Changing api/v2/Group.php to require only a title leads to a fatal 'CRM_Utils_String not found' error @ line 311 of CRM/Contact/BAO/Group.php that is remedied by adding require_once 'CRM/Utils/String.php' immediately above.