From: eileenmcnaugton Date: Tue, 18 Aug 2015 00:42:17 +0000 (+1200) Subject: CRM-16955 move setting of contact_id to parent form X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9977ae6160b02f54abfadbff56141e50e589a2d2;p=civicrm-core.git CRM-16955 move setting of contact_id to parent form --- diff --git a/CRM/Contribute/Form/AbstractEditPayment.php b/CRM/Contribute/Form/AbstractEditPayment.php index d8a99b1925..65ac8d5b2e 100644 --- a/CRM/Contribute/Form/AbstractEditPayment.php +++ b/CRM/Contribute/Form/AbstractEditPayment.php @@ -211,7 +211,7 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Contact_Form_Task { public function preProcess() { $this->_contactID = CRM_Utils_Request::retrieve('cid', 'Positive', $this); $this->assign('contactID', $this->_contactID); - + CRM_Core_Resources::singleton()->addVars('coreForm', array('contact_id' => (int) $this->_contactID)); $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'add'); } diff --git a/CRM/Member/Form/Membership.php b/CRM/Member/Form/Membership.php index e3ff392356..7a4d7c46ca 100644 --- a/CRM/Member/Form/Membership.php +++ b/CRM/Member/Form/Membership.php @@ -186,7 +186,6 @@ class CRM_Member_Form_Membership extends CRM_Member_Form { CRM_Core_Error::fatal(ts("This Membership is linked to a contribution. You must have 'delete in CiviContribute' permission in order to delete this record.")); } } - CRM_Core_Resources::singleton()->addVars('coreForm', array('contact_id' => (int) $this->_contactID)); if ($this->_action & CRM_Core_Action::ADD) { if (!CRM_Member_BAO_Membership::statusAvailabilty($this->_contactID)) {