From: Patrick Figel Date: Wed, 15 May 2019 08:23:12 +0000 (+0200) Subject: Fix row ID not being set in contribution/participant form X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0fc5a6b9f646327335672d420fe481851a89b508;p=civicrm-core.git Fix row ID not being set in contribution/participant form --- diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 6632df7404..d7149e5d09 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -824,6 +824,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP // if contribution is related to membership or participant freeze Financial Type, Amount if ($this->_id) { + $this->add('hidden', 'id', $this->_id); $componentDetails = CRM_Contribute_BAO_Contribution::getComponentDetails($this->_id); $isCancelledStatus = ($this->_values['contribution_status_id'] == CRM_Core_PseudoConstant::getKey('CRM_Contribute_BAO_Contribution', 'contribution_status_id', 'Cancelled')); diff --git a/CRM/Event/Form/Participant.php b/CRM/Event/Form/Participant.php index f86fca2c27..a1b1c61c17 100644 --- a/CRM/Event/Form/Participant.php +++ b/CRM/Event/Form/Participant.php @@ -689,6 +689,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment if ($this->_id) { $this->assign('entityID', $this->_id); + $this->add('hidden', 'id', $this->_id); } $this->addSelect('role_id', ['multiple' => TRUE, 'class' => 'huge'], TRUE);