Skip to content
Snippets Groups Projects
Commit 238e7cb3 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#59944 by Zen, Forms do not function on the search page when the search form has invalid input

parent efe07dad
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -891,7 +891,7 @@ function search_view() { ...@@ -891,7 +891,7 @@ function search_view() {
// Search form submits with POST but redirects to GET. This way we can keep // Search form submits with POST but redirects to GET. This way we can keep
// the search query URL clean as a whistle: // the search query URL clean as a whistle:
// search/type/keyword+keyword // search/type/keyword+keyword
if (!isset($_POST['edit']['keys'])) { if (!isset($_POST['edit']['form_id'])) {
if ($type == '') { if ($type == '') {
// Note: search/node can not be a default tab because it would take on the // Note: search/node can not be a default tab because it would take on the
// path of its parent (search). It would prevent remembering keywords when // path of its parent (search). It would prevent remembering keywords when
......
...@@ -891,7 +891,7 @@ function search_view() { ...@@ -891,7 +891,7 @@ function search_view() {
// Search form submits with POST but redirects to GET. This way we can keep // Search form submits with POST but redirects to GET. This way we can keep
// the search query URL clean as a whistle: // the search query URL clean as a whistle:
// search/type/keyword+keyword // search/type/keyword+keyword
if (!isset($_POST['edit']['keys'])) { if (!isset($_POST['edit']['form_id'])) {
if ($type == '') { if ($type == '') {
// Note: search/node can not be a default tab because it would take on the // Note: search/node can not be a default tab because it would take on the
// path of its parent (search). It would prevent remembering keywords when // path of its parent (search). It would prevent remembering keywords when
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment