From: monishdeb Date: Thu, 28 May 2015 17:10:59 +0000 (+0530) Subject: CRM-16576 fix - Cannot disable permissions in Relationships X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cd4a70817da660fcce293bc03fdded1216507fdb;p=civicrm-core.git CRM-16576 fix - Cannot disable permissions in Relationships https://issues.civicrm.org/jira/browse/CRM-16576 --- diff --git a/CRM/Contact/Form/Relationship.php b/CRM/Contact/Form/Relationship.php index db02b89669..badd762924 100644 --- a/CRM/Contact/Form/Relationship.php +++ b/CRM/Contact/Form/Relationship.php @@ -388,6 +388,10 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form { // Store the submitted values in an array. $params = $this->controller->exportValues($this->_name); + // CRM-14612 - Don't use adv-checkbox as it interferes with the form js + $params['is_permission_a_b'] = CRM_Utils_Array::value('is_permission_a_b', $params, 0); + $params['is_permission_b_a'] = CRM_Utils_Array::value('is_permission_b_a', $params, 0); + // action is taken depending upon the mode if ($this->_action & CRM_Core_Action::DELETE) { CRM_Contact_BAO_Relationship::del($this->_relationshipId);