X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FForm%2FAbstractEditPayment.php;h=0fa04cdfddc34668b317dcc6f82ecb7ff261b20a;hb=8381af809c027065ceb28f18b5530ffb3a51ada3;hp=71292d3ca3af5f5607a4c8e44e33ed8a59c87e50;hpb=c52dca187fea48b67e5479f23e17bfd8206c42df;p=civicrm-core.git diff --git a/CRM/Contribute/Form/AbstractEditPayment.php b/CRM/Contribute/Form/AbstractEditPayment.php index 71292d3ca3..0fa04cdfdd 100644 --- a/CRM/Contribute/Form/AbstractEditPayment.php +++ b/CRM/Contribute/Form/AbstractEditPayment.php @@ -164,7 +164,7 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Core_Form { //Check if this is an online transaction (financial_trxn.payment_processor_id NOT NULL) $this->_online = FALSE; $fids = CRM_Core_BAO_FinancialTrxn::getFinancialTrxnId($id); - if (CRM_Utils_Array::value('financialTrxnId', $fids)) { + if (!empty($fids['financialTrxnId'])) { $this->_online = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialTrxn', $fids['financialTrxnId'], 'payment_processor_id'); } @@ -175,12 +175,6 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Core_Form { $this->assign('isOnline', $this->_online ? TRUE : FALSE); - //unset the honor type id:when delete the honor_contact_id - //and edit the contribution, honoree infomation pane open - //since honor_type_id is present - if (!CRM_Utils_Array::value('honor_contact_id', $values)) { - unset($values['honor_type_id']); - } //to get note id $daoNote = new CRM_Core_BAO_Note(); $daoNote->entity_table = 'civicrm_contribution';