CRM-6240 GroupContact enhancement to add contacts to groups with Pending status

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.1.4
    • Fix Version/s: 3.2
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      Currently, the API only allows contacts to be Added or Removed to a Group. CiviCRM also supports the Pending status, but this is not available in the API, and so can't be utilised without burrowing deep into CiviCRM itself.

      I attach a series of small enhancements to api/v2/GroupContact.php to support the Pending status for group contacts.

        Attachments

        1. GroupContact.patch
          2 kB
          Joe Baker
        2. GroupContact.php
          7 kB
          Joe Baker

          Activity

          [CRM-6240] GroupContact enhancement to add contacts to groups with Pending status
          Donald A. Lobo added a comment -

          can you please attach it as a patch rather than the entire file

          http://en.wikipedia.org/wiki/Patch_%28Unix%29

          makes it easier for us to patch the codebase. thanx for stepping up

          Joe Baker added a comment -

          Here's the patch file.

          Donald A. Lobo added a comment -

          great, thanx for the patch. Have applied it to the code base

          Would you be kind enough to add a few unit tests to test the new functionality:

          tests/phpunit/api/v2/GroupContactTest.php is the test file

          http://wiki.civicrm.org/confluence/display/CRM/Testing is the relevant wiki page

            People

            • Assignee:
              Donald A. Lobo
              Reporter:
              Joe Baker

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 30 minutes
                30m
                Logged:
                Time Spent - Not Specified
                Not Specified