Skip to content

Commit

Permalink
[#180] Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jensschuppe committed Nov 7, 2023
1 parent 3e8dad1 commit f01257a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CRM/Donrec/Form/Task/DonrecTask.php
Expand Up @@ -111,16 +111,18 @@ function postProcess() {
. '&ccount=' . count($this->getContactIDs())
)
);
}elseif (empty($result['snapshot'])) {
}
elseif (empty($result['snapshot'])) {
CRM_Core_Session::setStatus(E::ts('There are no selectable contributions for these contacts in the selected time period.'), E::ts('Warning'), 'warning');
$qfKey = $values['qfKey'];
CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/contact/search', "_qf_DonrecTask_display=true&qfKey=$qfKey"));
}else{
}
else{
CRM_Core_Session::singleton()->pushUserContext(
CRM_Utils_System::url(
'civicrm/donrec/task',
'sid=' . $result['snapshot']->getId()
. '&ccount=' . count($this - $this->getContactIDs())
. '&ccount=' . count($this->getContactIDs())
)
);
}
Expand Down

0 comments on commit f01257a

Please sign in to comment.