Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid error when reserving respondents in a survey. #19811

Merged
merged 1 commit into from
Mar 16, 2021

Conversation

jmcclelland
Copy link
Contributor

Overview

When reserving respondents for a survey, after selecting the respondents to reserve and clicking the Action to reserve them, the user gets the error:

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).

This seems to be a regression from: 56752ec

I'm not sure if we should somehow be passing &$form to this function
instead?

Before

The user gets an error when reserving contacts.

After

The user gets a confirmation message that the contacts have been reserved.

Technical Details

It seems that most tasks pass the $form argument, but this one does not. So the fix applied to all tasks in 56752ec failed in this case.

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?
@civibot
Copy link

civibot bot commented Mar 15, 2021

(Standard links)

@eileenmcnaughton
Copy link
Contributor

5.35 port #19814

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants