Skip to content

Commit

Permalink
Merge pull request #21014 from eileenmcnaughton/pf
Browse files Browse the repository at this point in the history
dev/core#2739 - Fix contribution tasks using wrong IDs
  • Loading branch information
totten authored Aug 5, 2021
2 parents ad27f32 + 7656ed4 commit ed87ba6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Contribute/Form/Task/TaskTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ public function getIDs() {
* @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());
Expand Down

0 comments on commit ed87ba6

Please sign in to comment.