From 19998c573cc64b4e9389534202cd9c06e64a47be Mon Sep 17 00:00:00 2001 From: eileen Date: Sat, 12 Dec 2020 15:37:43 +1300 Subject: [PATCH] Fix failure to assign view tpl variables to view page if context=search is in the url Whack-a-mole round 10 --- CRM/Event/Page/Tab.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Event/Page/Tab.php b/CRM/Event/Page/Tab.php index 47334d4af5..ef08087eaf 100644 --- a/CRM/Event/Page/Tab.php +++ b/CRM/Event/Page/Tab.php @@ -118,7 +118,7 @@ class CRM_Event_Page_Tab extends CRM_Core_Page { $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, 'browse'); $this->_id = CRM_Utils_Request::retrieve('id', 'Positive', $this); - if ($context == 'standalone' || $context === 'search') { + if (($context == 'standalone' || $context === 'search') && $this->_action !== CRM_Core_Action::VIEW) { $this->_action = CRM_Core_Action::ADD; } else { -- 2.25.1