* Build the form object.
*/
public function buildQuickForm() {
+ if ($this->_id) {
+ $this->add('hidden', 'id', $this->_id);
+ }
+
if ($this->_action & CRM_Core_Action::DELETE) {
$this->addButtons([
[
// 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'));
* @throws \CiviCRM_API3_Exception
*/
public function buildQuickForm() {
+ if ($this->_id) {
+ $this->add('hidden', 'id', $this->_id);
+ }
+
$participantStatuses = CRM_Event_PseudoConstant::participantStatus();
$partiallyPaidStatusId = array_search('Partially paid', $participantStatuses);
$this->assign('partiallyPaidStatusId', $partiallyPaidStatusId);
if ($this->_id) {
$this->assign('entityID', $this->_id);
- $this->add('hidden', 'id', $this->_id);
}
$this->addSelect('role_id', ['multiple' => TRUE, 'class' => 'huge'], TRUE);