avoid error when reserving respondents in a survey.
authorJamie McClelland <jm@mayfirst.org>
Mon, 15 Mar 2021 13:54:03 +0000 (09:54 -0400)
committerJamie McClelland <jm@mayfirst.org>
Mon, 15 Mar 2021 21:08:15 +0000 (17:08 -0400)
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?

CRM/Campaign/Form/Task.php

index 8765bdcdc4c9e316eae854e89306daf6b133f11a..924e49ed4f29b6d772ff7c4dee7d476521b3e09e 100644 (file)
@@ -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);