diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php
index 30e5ea19..5ebb2d9f 100644
--- a/adminer/include/adminer.inc.php
+++ b/adminer/include/adminer.inc.php
@@ -264,7 +264,7 @@ username.form['auth[driver]'].onchange();
if (!$val || ("$val[col]$val[val]" != "" && in_array($val["op"], $this->operators))) {
echo "
";
echo html_select("where[$i][op]", $this->operators, $val["op"], $change_next);
- echo "
\n";
+ echo "\n";
}
}
echo "\n";
diff --git a/adminer/static/functions.js b/adminer/static/functions.js
index a47f3b6a..17df5faa 100644
--- a/adminer/static/functions.js
+++ b/adminer/static/functions.js
@@ -258,7 +258,7 @@ function selectAddRow(field) {
/** Clear column name after resetting search
* @param HTMLInputElement
*/
-function selectSearch(el) {
+function selectSearchSearch(el) {
if (!el.value) {
el.parentNode.firstChild.selectedIndex = 0;
}
diff --git a/changes.txt b/changes.txt
index 1f53f762..a969f74a 100644
--- a/changes.txt
+++ b/changes.txt
@@ -6,6 +6,7 @@ Allow using lang() in plugins (customization)
Remove bzip2 compression support
Constraint memory used in TAR export
Allow exporting views dependent on each other (bug #3459151)
+Fix resetting search (bug #3612507)
MySQL: Optimize create table page and Editor navigation
MySQL: Display bit type as binary number
MySQL: Improve export of binary data types
diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php
index c110fd88..516cd90b 100644
--- a/editor/include/adminer.inc.php
+++ b/editor/include/adminer.inc.php
@@ -234,7 +234,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
if (($val["col"] == "" || $columns[$val["col"]]) && "$val[col]$val[val]" != "") {
echo "";
echo html_select("where[$i][op]", array(-1 => "") + $this->operators, $val["op"]);
- echo "
\n";
+ echo "\n";
$i++;
}
}