From 7bbd6f72b544b2389a1f772e3707d1671b4eb367 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 21 Nov 2023 11:59:19 +1300 Subject: [PATCH] Single appears to be never true on this form too --- .../Form/ContributionPage/AddProduct.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) 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(); } /** -- 2.25.1