Skip to content
Snippets Groups Projects
Commit 7656ed42 authored by Patrick Figel's avatar Patrick Figel Committed by Eileen McNaughton
Browse files

#2739 - Fix contribution tasks using wrong IDs

This fixes an issue where contribution tasks may perform actions
on unrelated contribution IDs when they're called via contact
search forms.
parent 9dfeb510
Branches
Tags
No related merge requests found
......@@ -114,7 +114,9 @@ trait CRM_Contribute_Form_Task_TaskTrait {
* @throws \CRM_Core_Exception
*/
protected function calculateIDS() {
if ($this->controller->get('id')) {
// contact search forms use the id property to store the selected uf_group_id
// rather than entity (contribution) IDs, so don't use the property in that case
if (!$this->controller instanceof CRM_Contact_Controller_Search && $this->controller->get('id')) {
return explode(',', $this->controller->get('id'));
}
$ids = $this->getSelectedIDs($this->getSearchFormValues());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment