Skip to content

Commit

Permalink
Merge commit 'refs/pull/11311/head' of https://github.com/civicrm/civ…
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Nov 30, 2017
2 parents a161be5 + 0808ea6 commit 50656a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CRM/Contact/Form/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -943,11 +943,10 @@ public function postProcess() {
// process shared contact address.
CRM_Contact_BAO_Contact_Utils::processSharedAddress($params['address']);

if (!array_key_exists('TagsAndGroups', $this->_editOptions) && !empty($params['group'])) {
if (!array_key_exists('TagsAndGroups', $this->_editOptions)) {
unset($params['group']);
}

if (!empty($params['contact_id']) && ($this->_action & CRM_Core_Action::UPDATE) && !empty($params['group'])) {
elseif (!empty($params['contact_id']) && ($this->_action & CRM_Core_Action::UPDATE)) {
// figure out which all groups are intended to be removed
$contactGroupList = CRM_Contact_BAO_GroupContact::getContactGroup($params['contact_id'], 'Added');
if (is_array($contactGroupList)) {
Expand Down

0 comments on commit 50656a3

Please sign in to comment.