From: eileen Date: Thu, 25 Mar 2021 06:49:08 +0000 (+1300) Subject: Remove handling for a single id X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8c2b7d01e237dd635db21a17445be854c0f53787;p=civicrm-core.git 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 --- 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(*)