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

ISTWCMS-6944: fix that uuid gets set properly on service search block

parent 2c99d667
No related branches found
No related tags found
2 merge requests!60ISTWCMS-6095 Update maxlength settings for title, text fields and link fields...,!54ISTWCMS-6944: add id to input label on service search form
......@@ -61,11 +61,6 @@ class ServiceSearchForm extends FormBase {
$placeholder = 'Search within all services';
}
// If there is no uuid, generate it.
if (!$uuid) {
$uuid = uniqid();
}
// Add the unique id.
$form['#attributes']['id'] = 'service-search-form-' . $uuid;
......@@ -87,12 +82,6 @@ class ServiceSearchForm extends FormBase {
'#attributes' => ['aria-label' => 'search'],
];
// The uuid hidden element.
$form['uuid'] = [
'#type' => 'hidden',
'#value' => $uuid,
];
return $form;
}
......
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