From: Jamie McClelland Date: Mon, 15 Mar 2021 13:54:03 +0000 (-0400) Subject: avoid error when reserving respondents in a survey. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f60ff0538ac22b532e977b09515c7787d3351276;p=civicrm-core.git avoid error when reserving respondents in a survey. The full error is: Error: Call to a member function getSelectedIDs() on null in CRM_Campaign_Form_Task->preProcess() (line 38 of /var/www/powerbase/sites/all/modules/civicrm/CRM/Campaign/Form/Task.php). I'm not sure if we should somehow be passing &$form to this function instead? --- diff --git a/CRM/Campaign/Form/Task.php b/CRM/Campaign/Form/Task.php index 8765bdcdc4..924e49ed4f 100644 --- a/CRM/Campaign/Form/Task.php +++ b/CRM/Campaign/Form/Task.php @@ -35,7 +35,7 @@ class CRM_Campaign_Form_Task extends CRM_Core_Form_Task { $this->_task = $values['task']; - $ids = $form->getSelectedIDs($values); + $ids = $this->getSelectedIDs($values); if (!$ids) { $qfKey = CRM_Utils_Request::retrieve('qfKey', 'String', $this);