Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
68ccfee9
Commit
68ccfee9
authored
2 years ago
by
Eric Bremner
Committed by
Kevin Paxman
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-4729: fixing undefined variable error in site search form
parent
e1c2fce9
No related branches found
No related tags found
1 merge request
!239
ISTWCMS 4729 ebremner search form
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Form/UwSearchForm.php
+3
-3
3 additions, 3 deletions
src/Form/UwSearchForm.php
with
3 additions
and
3 deletions
src/Form/UwSearchForm.php
+
3
−
3
View file @
68ccfee9
...
...
@@ -94,6 +94,9 @@ class UwSearchForm extends FormBase {
*/
public
function
submitForm
(
array
&
$form
,
FormStateInterface
$form_state
)
{
// Variable for the parameters.
$parameters
=
''
;
// Get the values from the form state.
$values
=
$form_state
->
getValues
();
...
...
@@ -101,9 +104,6 @@ class UwSearchForm extends FormBase {
// set for the redirect to the search.
if
(
$values
[
'search-input'
]
||
$values
[
'search-type'
])
{
// Variable for the parameters.
$parameters
=
''
;
// If this is a site search, add it to parameters.
if
(
$values
[
'search-type'
])
{
$parameters
.
=
$values
[
'search-type'
]
.
' '
;
...
...
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