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

ISTWCMS-4729: cleaning up code for search form

parent 1f95122a
No related branches found
No related tags found
1 merge request!239ISTWCMS 4729 ebremner search form
......@@ -139,19 +139,14 @@ class UwSearchForm extends FormBase {
// Get the values from the form state.
$values = $form_state->getValues();
// If there is search text or type, get the parameters
// set for the redirect to the search.
if ($values['search-input'] || $values['search-type']) {
// If this is a site search, add it to parameters.
if ($values['search-type']) {
$parameters .= $values['search-type'] . ' ';
}
// If there is search text add it to the parameters.
if ($values['search-input']) {
$parameters .= $values['search-input'];
}
// If this is a site search, add it to parameters.
if ($values['search-type']) {
$parameters .= $values['search-type'] . ' ';
}
// If there is search text add it to the parameters.
if ($values['search-input']) {
$parameters .= $values['search-input'];
}
// The URL to the uwaterloo search.
......
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