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

API: crm_create_group() requires odd format for group_type parameter

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.9
    • Fix Version/s: 2.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      CiviCRM 1.9.12432:

      The crm_create_group() function does not accept any expected format (i.e., 'Access', 'Access Control', or '1') for the 'group_type' parameter. What wound up working is this:

      'group_type' => CRM_Core_DAO::VALUE_SEPARATOR . '1' . CRM_Core_DAO::VALUE_SEPARATOR,

      Note that no error is thrown: the group is simply created without a type.

        Attachments

          Activity

            People

            • Assignee:
              kiran.jagtap Kiran Jagtap
              Reporter:
              stevem Steve McCullough
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: