Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-2997

API: strange civicrm_group_add() required $params

    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.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              stevem Steve McCullough
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: