From 644f8aa753b284417615391cb577436ac0fe69f2 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sat, 9 Nov 2019 07:18:55 +1100 Subject: [PATCH] Add in translation function around newly converted statusBounce messages --- CRM/Campaign/Form/Search.php | 2 +- CRM/Case/Form/Activity.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Campaign/Form/Search.php b/CRM/Campaign/Form/Search.php index abfa2fa313a2..e622c0521fb5 100644 --- a/CRM/Campaign/Form/Search.php +++ b/CRM/Campaign/Form/Search.php @@ -405,7 +405,7 @@ public function fixFormValues() { $surveyId = key(CRM_Campaign_BAO_Survey::getSurveys(TRUE, TRUE)); } if (!$surveyId) { - CRM_Core_Error::statusBounce('Could not find valid Survey Id.'); + CRM_Core_Error::statusBounce(ts('Could not find valid Survey Id.')); } $this->_formValues['campaign_survey_id'] = $this->_formValues['campaign_survey_id'] = $surveyId; diff --git a/CRM/Case/Form/Activity.php b/CRM/Case/Form/Activity.php index 78f14d286bd5..3d202f1043f5 100644 --- a/CRM/Case/Form/Activity.php +++ b/CRM/Case/Form/Activity.php @@ -97,7 +97,7 @@ public function preProcess() { if (!$this->_caseId || (!$this->_activityId && !$this->_activityTypeId) ) { - CRM_Core_Error::statusBounce('required params missing.'); + CRM_Core_Error::statusBounce(ts('required params missing.')); } //check for case activity access.