From 903546e6af567bdb7f9214dafaaa159c1d10d8ae Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Wed, 29 Dec 2021 13:33:59 +0000 Subject: [PATCH] Fix params passed to setStatus method --- CRM/Admin/Form/PdfFormats.php | 6 +++--- CRM/Price/Form/DeleteSet.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CRM/Admin/Form/PdfFormats.php b/CRM/Admin/Form/PdfFormats.php index 87d2970f2e..975c495f4c 100644 --- a/CRM/Admin/Form/PdfFormats.php +++ b/CRM/Admin/Form/PdfFormats.php @@ -125,11 +125,11 @@ class CRM_Admin_Form_PdfFormats extends CRM_Admin_Form { $bao = new CRM_Core_BAO_PdfFormat(); $bao->savePdfFormat($values, $this->_id); - $status = ts('Your new PDF Page Format titled %1 has been saved.', [1 => $values['name']], ts('Saved'), 'success'); + $status = ts('Your new PDF Page Format titled %1 has been saved.', [1 => $values['name']]); if ($this->_action & CRM_Core_Action::UPDATE) { - $status = ts('Your PDF Page Format titled %1 has been updated.', [1 => $values['name']], ts('Saved'), 'success'); + $status = ts('Your PDF Page Format titled %1 has been updated.', [1 => $values['name']]); } - CRM_Core_Session::setStatus($status); + CRM_Core_Session::setStatus($status, ts('Saved'), 'success'); } } diff --git a/CRM/Price/Form/DeleteSet.php b/CRM/Price/Form/DeleteSet.php index 4dd4186594..8a1ccdfb0c 100644 --- a/CRM/Price/Form/DeleteSet.php +++ b/CRM/Price/Form/DeleteSet.php @@ -75,8 +75,8 @@ class CRM_Price_Form_DeleteSet extends CRM_Core_Form { 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.', -- 2.25.1