Skip to content

Commit

Permalink
Re-format affected code
Browse files Browse the repository at this point in the history
  • Loading branch information
jensschuppe committed Oct 4, 2023
1 parent 02ce2c6 commit aede56d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions CRM/Donrec/Form/Task/ContributeTask.php
Expand Up @@ -104,14 +104,24 @@ function postProcess() {

if (!empty($result['intersection_error'])) {
CRM_Core_Session::singleton()->pushUserContext(
CRM_Utils_System::url('civicrm/donrec/task', 'conflict=1' . '&sid=' . $result['snapshot']->getId() . '&ccount=' . count($this->getContactIDs())));
CRM_Utils_System::url(
'civicrm/donrec/task',
'conflict=1'
. '&sid=' . $result['snapshot']->getId()
. '&ccount=' . count($this->getContactIDs())
)
);
}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{
CRM_Core_Session::singleton()->pushUserContext(
CRM_Utils_System::url('civicrm/donrec/task', 'sid=' . $result['snapshot']->getId() . '&ccount=' . count($this->getContactIDs()))
CRM_Utils_System::url(
'civicrm/donrec/task',
'sid=' . $result['snapshot']->getId()
. '&ccount=' . count($this->getContactIDs())
)
);
}
}
Expand Down
14 changes: 12 additions & 2 deletions CRM/Donrec/Form/Task/DonrecTask.php
Expand Up @@ -104,14 +104,24 @@ function postProcess() {

if (!empty($result['intersection_error'])) {
CRM_Core_Session::singleton()->pushUserContext(
CRM_Utils_System::url('civicrm/donrec/task', 'conflict=1' . '&sid=' . $result['snapshot']->getId() . '&ccount=' . count($this->getContactIDs())));
CRM_Utils_System::url(
'civicrm/donrec/task',
'conflict=1'
. '&sid=' . $result['snapshot']->getId()
. '&ccount=' . count($this->getContactIDs())
)
);
}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{
CRM_Core_Session::singleton()->pushUserContext(
CRM_Utils_System::url('civicrm/donrec/task', 'sid=' . $result['snapshot']->getId() . '&ccount=' . count($this-$this->getContactIDs()))
CRM_Utils_System::url(
'civicrm/donrec/task',
'sid=' . $result['snapshot']->getId()
. '&ccount=' . count($this - $this->getContactIDs())
)
);
}
}
Expand Down

0 comments on commit aede56d

Please sign in to comment.