CRM-16576 fix - Cannot disable permissions in Relationships
authormonishdeb <monish.deb@webaccessglobal.com>
Thu, 28 May 2015 17:10:59 +0000 (22:40 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Thu, 28 May 2015 17:10:59 +0000 (22:40 +0530)
https://issues.civicrm.org/jira/browse/CRM-16576

CRM/Contact/Form/Relationship.php

index db02b8966967f22dfa043a9fda61ace7fea26bdb..badd762924c8215320ed054d43f023dac1fb1226 100644 (file)
@@ -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);