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

Revert membership of smart group

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.0, 3.4.1, 4.0.0, 4.0.1
    • Fix Version/s: 4.1.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      In a contact's "Groups" tab you can see when somebody has been Added, Pending or Removed from a smart group. However there is no means to make their membership revert back to the smart group criteria. This may mean that somebody is permanently added or removed, when this may not be appropriate.

      This patch adds a [ Delete ] option to the right of Current [ Remove ], Pending [ Remove ] and [ Rejoin group ]. It removes the appropriate entry from civicrm_group_contact, thereby reverting to the smart group criteria. For non-smart groups, the contact will be not present in the group.

      The documentation should be updated to describe precisely what the [ Delete ] option does.

      A new entry is also appended to civicrm_subscription_history. This table needs altering to add the enum option 'Deleted' as per the following. This code is not included in the patch.

      ALTER TABLE `civicrm_subscription_history` CHANGE `status` `status` ENUM( 'Added', 'Removed', 'Pending', 'Deleted' ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT 'The state of the contact within the group'

        Attachments

          Activity

            People

            • Assignee:
              rajan Rajan P Mayekar
              Reporter:
              chriscant Chris Cant
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: