From 54220789f567b842d90a5e17e9e3dabe5b452764 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.chilliet@fusiondirectory.org>
Date: Tue, 22 Oct 2019 11:17:24 +0200
Subject: [PATCH] :ambulance: fix(forms) Add a hidden submit at beginning of
 form

This avoids problems when submitting forms using enter.
In management pages it would reset the base to root as the root button
 was the first submit in the form.

issue #6033
---
 ihtml/themes/breezy/framework.tpl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ihtml/themes/breezy/framework.tpl b/ihtml/themes/breezy/framework.tpl
index 474dd383f..88bde8e1b 100644
--- a/ihtml/themes/breezy/framework.tpl
+++ b/ihtml/themes/breezy/framework.tpl
@@ -3,6 +3,7 @@
   {$game_screen}
   {$php_errors}
   <form action="main.php{$plug}" name="mainform" id="mainform" method="post" enctype="multipart/form-data">
+    <div style="width: 0; height: 0; overflow: hidden;"><input type="submit" name="default_submit_hidden_button"/></div>
     <div class="setup-header">
       <div id="header-left">
         <img id="fd-logo" class="optional" src="geticon.php?context=applications&amp;icon=fusiondirectory&amp;size=48" alt="FusionDirectory logo"/>
-- 
GitLab