Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
238e7cb3
Commit
238e7cb3
authored
18 years ago
by
Neil Drumm
Browse files
Options
Downloads
Patches
Plain Diff
#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
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/search.module
+1
-1
1 addition, 1 deletion
modules/search.module
modules/search/search.module
+1
-1
1 addition, 1 deletion
modules/search/search.module
with
2 additions
and
2 deletions
modules/search.module
+
1
−
1
View file @
238e7cb3
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
modules/search/search.module
+
1
−
1
View file @
238e7cb3
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment