Using actions from contribution search throws PHP warning
When creating a Dataprocessor contribution search, I get the following warning when using an action from the action menu:
Warning: Invalid argument supplied for foreach() in HTML_QuickForm_Controller->exportValues() (line 495 of /var/www/vhosts/civicrm/dev/public/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php).
And some actions do not work (e. g. "assign to membership").
I'm using CiviCRM 5.34.0 and Dataprocessor 1.36
This seems to be like #65.
I compared the posts from a search done with dataprocessor and a search done with a CiviCRM search. And there is a parameter "_qf_default" that differs. With a CiviCRM search _qf_default contains "Search" and with a dataprocessor search it contains "Basic".
When applying this patch
@@ -23,7 +23,7 @@ class CRM_DataprocessorSearch_StateMachine_ContributionSearch extends CRM_Core_S parent::__construct($controller, $action); $this->_pages = array(); - $this->_pages['Basic'] = array( + $this->_pages['Search'] = array( 'className' => 'CRM_DataprocessorSearch_Form_ContributionSearch', ); list($task, $result) = $this->taskName($controller);
the action works as expected. But I'm not sure if this is the right way to fix this.