Skip to content
Snippets Groups Projects
Unverified Commit ed87ba63 authored by totten's avatar totten Committed by GitHub
Browse files

Merge pull request #21014 from eileenmcnaughton/pf

#2739 - Fix contribution tasks using wrong IDs
parents ad27f322 7656ed42
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