Skip to content
Snippets Groups Projects
Commit 68ccfee9 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-4729: fixing undefined variable error in site search form

parent e1c2fce9
No related branches found
No related tags found
1 merge request!239ISTWCMS 4729 ebremner search form
......@@ -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'] . ' ';
......
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