minor fix
authordeb.monish <monish.deb@jmaconsulting.biz>
Wed, 12 Apr 2017 09:15:26 +0000 (14:45 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Wed, 12 Apr 2017 09:15:26 +0000 (14:45 +0530)
CRM/Contribute/Form/AbstractEditPayment.php

index dbab4cc87e46f054af99324a3fe5f574c1bb55ae..3e466db5e72be5c88c4f2750c794859102188afd 100644 (file)
@@ -213,7 +213,7 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Contact_Form_Task {
     $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');
-    $this->_mode = CRM_Utils_Request::retrieve('mode', 'String', $this);
+    $this->_mode = empty($this->_mode) ? CRM_Utils_Request::retrieve('mode', 'String', $this) : $this->_mode;
   }
 
   /**