// 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'));
if ($this->_id) {
$this->assign('entityID', $this->_id);
+ $this->add('hidden', 'id', $this->_id);
}
$this->addSelect('role_id', ['multiple' => TRUE, 'class' => 'huge'], TRUE);