From 0fc5a6b9f646327335672d420fe481851a89b508 Mon Sep 17 00:00:00 2001 From: Patrick Figel Date: Wed, 15 May 2019 10:23:12 +0200 Subject: [PATCH] Fix row ID not being set in contribution/participant form --- CRM/Contribute/Form/Contribution.php | 1 + CRM/Event/Form/Participant.php | 1 + 2 files changed, 2 insertions(+) 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); -- 2.25.1