From: Eileen McNaughton Date: Mon, 20 Nov 2023 22:59:19 +0000 (+1300) Subject: Single appears to be never true on this form too X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7bbd6f72b544b2389a1f772e3707d1671b4eb367;p=civicrm-core.git Single appears to be never true on this form too --- diff --git a/CRM/Contribute/Form/ContributionPage/AddProduct.php b/CRM/Contribute/Form/ContributionPage/AddProduct.php index ca0a6f9b4a..27dbb75895 100644 --- a/CRM/Contribute/Form/ContributionPage/AddProduct.php +++ b/CRM/Contribute/Form/ContributionPage/AddProduct.php @@ -187,23 +187,7 @@ class CRM_Contribute_Form_ContributionPage_AddProduct extends CRM_Contribute_For $this->addRule('weight', ts('Please enter integer value for weight'), 'integer'); $session->pushUserContext(CRM_Utils_System::url($urlParams, 'action=update&reset=1&id=' . $this->_id)); - if ($this->_single) { - $this->addButtons([ - [ - 'type' => 'next', - 'name' => ts('Save'), - 'spacing' => '    ', - 'isDefault' => TRUE, - ], - [ - 'type' => 'cancel', - 'name' => ts('Cancel'), - ], - ]); - } - else { - parent::buildQuickForm(); - } + parent::buildQuickForm(); } /**