From ba5721c58ef8010ad268c5e0433515c1cb6cf86e Mon Sep 17 00:00:00 2001
From: noackorama <noackorama@gmail.com>
Date: Wed, 1 Jun 2022 17:22:07 +0200
Subject: [PATCH] backport changes in SearchWidget from #394 to get #1115 fixed

---
 lib/classes/sidebar/SearchWidget.php | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/lib/classes/sidebar/SearchWidget.php b/lib/classes/sidebar/SearchWidget.php
index 39bf1ee94fa..2b7979e43d8 100644
--- a/lib/classes/sidebar/SearchWidget.php
+++ b/lib/classes/sidebar/SearchWidget.php
@@ -34,24 +34,6 @@ class SearchWidget extends SidebarWidget
         $this->template = 'sidebar/search-widget';
     }
 
-    /**
-     * Sets the id for the form element.
-     */
-    public function setId($id)
-    {
-        $this->id = $id;
-    }
-
-    /**
-     * Returns the id for the form element.
-     *
-     * @return mixed String containing the id or null if no id has been set.
-     */
-    public function getId()
-    {
-        return $this->id;
-    }
-
     /**
      * Sets the request method used for the form.
      */
@@ -143,7 +125,6 @@ class SearchWidget extends SidebarWidget
         $this->template_variables['url_params'] = $query_params;
 
         $this->template_variables['method'] = $this->method;
-        $this->template_variables['id']     = $this->id;
 
         foreach ($this->needles as $index => $needle) {
             if ($needle['quick_search']) {
-- 
GitLab