Skip to content

Commit

Permalink
Merge pull request #22338 from braders/setstatus-param-fixes
Browse files Browse the repository at this point in the history
Fix params passed to setStatus method
  • Loading branch information
demeritcowboy authored Dec 29, 2021
2 parents d9b8fce + 903546e commit 6e307d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CRM/Admin/Form/PdfFormats.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ public function postProcess() {
$bao = new CRM_Core_BAO_PdfFormat();
$bao->savePdfFormat($values, $this->_id);

$status = ts('Your new PDF Page Format titled <strong>%1</strong> has been saved.', [1 => $values['name']], ts('Saved'), 'success');
$status = ts('Your new PDF Page Format titled <strong>%1</strong> has been saved.', [1 => $values['name']]);
if ($this->_action & CRM_Core_Action::UPDATE) {
$status = ts('Your PDF Page Format titled <strong>%1</strong> has been updated.', [1 => $values['name']], ts('Saved'), 'success');
$status = ts('Your PDF Page Format titled <strong>%1</strong> has been updated.', [1 => $values['name']]);
}
CRM_Core_Session::setStatus($status);
CRM_Core_Session::setStatus($status, ts('Saved'), 'success');
}

}
4 changes: 2 additions & 2 deletions CRM/Price/Form/DeleteSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public function buildQuickForm() {
public function postProcess() {
if (CRM_Price_BAO_PriceSet::deleteSet($this->_sid)) {
CRM_Core_Session::setStatus(ts('The Price Set \'%1\' has been deleted.',
[1 => $this->_title], ts('Deleted'), 'success'
));
[1 => $this->_title]
), ts('Deleted'), 'success');
}
else {
CRM_Core_Session::setStatus(ts('The Price Set \'%1\' has not been deleted! You must delete all price fields in this set prior to deleting the set.',
Expand Down

0 comments on commit 6e307d3

Please sign in to comment.