From b99698e50ed10ea2da8ebe220146f33b04f0a882 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Tue, 30 Apr 2013 19:13:06 -0700 Subject: [PATCH] fixed context for mailing report, CRM-12357 --- CRM/Mailing/Page/Report.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Mailing/Page/Report.php b/CRM/Mailing/Page/Report.php index 5128ae423e..adebebf044 100644 --- a/CRM/Mailing/Page/Report.php +++ b/CRM/Mailing/Page/Report.php @@ -102,6 +102,10 @@ class CRM_Mailing_Page_Report extends CRM_Core_Page_Basic { ); $backUrlTitle = ts('Back to Activity'); } + elseif ($context == 'mailing') { + $backUrl = CRM_Utils_System::url('civicrm/contact/view', "reset=1&cid={$cid}&selectedChild=mailing"); + $backUrlTitle = ts('Back to Mailing'); + } else { $backUrl = CRM_Utils_System::url('civicrm/mailing', 'reset=1'); $backUrlTitle = ts('Back to CiviMail'); -- 2.25.1