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

Cannot remove all groups when editing a contact

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.27
    • Fix Version/s: 4.7.30
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      Caused by CRM-15830: when editing a contact record, it is not possible to remove all groups.

      How to reproduce:

      • Create a contact, add the contact to 1 group
      • Edit the contact, remove the group from the list of groups for that contact (NB: not from the 'Group' tab, that works fine).

      Result: the contact is still in the group.

      Same problem with tags.

      Cause: https://github.com/civicrm/civicrm-core/blob/37f7ae8870dfdef58d9a2c88d0d5f7c0c5e3c378/CRM/Contact/Form/Contact.php#L950

        Attachments

          Activity

            People

            • Assignee:
              mlutfy Mathieu Lutfy
              Reporter:
              mlutfy Mathieu Lutfy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: