From cd4a70817da660fcce293bc03fdded1216507fdb Mon Sep 17 00:00:00 2001 From: monishdeb Date: Thu, 28 May 2015 22:40:59 +0530 Subject: [PATCH] CRM-16576 fix - Cannot disable permissions in Relationships https://issues.civicrm.org/jira/browse/CRM-16576 --- CRM/Contact/Form/Relationship.php | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.25.1