From 220966d399350dd2b65d4fc29d5926eb198d5b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Gro=C3=9Fe?= <grosse@cosmocode.de> Date: Tue, 27 Mar 2018 20:16:32 +0200 Subject: [PATCH] fix: display "show" item in page menu during search action Since we no longer change the page during a search, using the "show" menu item to return to the current page makes more sense. --- inc/Menu/Item/Edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/Menu/Item/Edit.php b/inc/Menu/Item/Edit.php index 05467674d..5de1778fd 100644 --- a/inc/Menu/Item/Edit.php +++ b/inc/Menu/Item/Edit.php @@ -18,7 +18,7 @@ class Edit extends AbstractItem { parent::__construct(); - if($ACT == 'show' || $ACT == 'search') { + if($ACT === 'show') { $this->method = 'post'; if($INFO['writable']) { $this->accesskey = 'e'; -- GitLab