From: eileen Date: Sat, 12 Dec 2020 02:37:43 +0000 (+1300) Subject: Fix failure to assign view tpl variables to view page if context=search is in the url X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=19998c573cc64b4e9389534202cd9c06e64a47be;p=civicrm-core.git Fix failure to assign view tpl variables to view page if context=search is in the url Whack-a-mole round 10 --- 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 {