From fdf80679aae152cd9e725d8cbeea8e0bcf388027 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 18 Oct 2014 15:21:17 -0400 Subject: [PATCH] CRM-15484 - Ensure event edit links go to backend --- CRM/Event/Page/EventInfo.php | 5 ++++ templates/CRM/Event/Page/EventInfo.tpl | 37 +++++--------------------- 2 files changed, 12 insertions(+), 30 deletions(-) diff --git a/CRM/Event/Page/EventInfo.php b/CRM/Event/Page/EventInfo.php index e6a5700a53..013eb28591 100644 --- a/CRM/Event/Page/EventInfo.php +++ b/CRM/Event/Page/EventInfo.php @@ -342,6 +342,11 @@ class CRM_Event_Page_EventInfo extends CRM_Core_Page { } $this->assign('location', $values['location']); + if (CRM_Core_Permission::check('access CiviEvent')) { + $enableCart = CRM_Core_BAO_Setting::getItem(CRM_Core_BAO_Setting::EVENT_PREFERENCES_NAME, 'enable_cart'); + $this->assign('manageEventLinks', CRM_Event_Page_ManageEvent::tabs($enableCart)); + } + return parent::run(); } diff --git a/templates/CRM/Event/Page/EventInfo.tpl b/templates/CRM/Event/Page/EventInfo.tpl index c60110a8ab..e85b8a093e 100644 --- a/templates/CRM/Event/Page/EventInfo.tpl +++ b/templates/CRM/Event/Page/EventInfo.tpl @@ -35,7 +35,7 @@ {if call_user_func(array('CRM_Core_Permission','check'), 'access CiviEvent')}