Single appears to be never true on this form too
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 20 Nov 2023 22:59:19 +0000 (11:59 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 20 Nov 2023 22:59:19 +0000 (11:59 +1300)
CRM/Contribute/Form/ContributionPage/AddProduct.php

index ca0a6f9b4aa7552361077519ed612b00abc9e299..27dbb758954dd98927689b2e9734a8e3398c14d4 100644 (file)
@@ -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' => '&nbsp;&nbsp;&nbsp;&nbsp;',
-          'isDefault' => TRUE,
-        ],
-        [
-          'type' => 'cancel',
-          'name' => ts('Cancel'),
-        ],
-      ]);
-    }
-    else {
-      parent::buildQuickForm();
-    }
+    parent::buildQuickForm();
   }
 
   /**