From 8c2b7d01e237dd635db21a17445be854c0f53787 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 25 Mar 2021 19:49:08 +1300 Subject: [PATCH] Remove handling for a single id I can't see any way to call this over than from search so I think this is from copy & paste from invoice which DOES support id --- CRM/Contribute/Form/Task/PDF.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/CRM/Contribute/Form/Task/PDF.php b/CRM/Contribute/Form/Task/PDF.php index 7b99516a88..016f01d030 100644 --- a/CRM/Contribute/Form/Task/PDF.php +++ b/CRM/Contribute/Form/Task/PDF.php @@ -35,20 +35,7 @@ class CRM_Contribute_Form_Task_PDF extends CRM_Contribute_Form_Task { * Build all the data structures needed to build the form. */ public function preProcess() { - $id = CRM_Utils_Request::retrieve('id', 'Positive', - $this, FALSE - ); - - if ($id) { - $this->_contributionIds = [$id]; - $this->_componentClause = " civicrm_contribution.id IN ( $id ) "; - $this->_single = TRUE; - $this->assign('totalSelectedContributions', 1); - } - else { - parent::preProcess(); - } - + parent::preProcess(); // check that all the contribution ids have pending status $query = " SELECT count(*) -- 2.25.1