Skip to content
Snippets Groups Projects
Commit 39c4eee8 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix saving of searches

parent c4737730
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,7 @@ class SearchAjaxAPI extends AjaxController {
else
$data[$name] = $info['value'];
}
self::ensureConsistentFormFieldIds();
$form = $search->getForm($data);
if (!$data || !$form->isValid()) {
Http::response(422, 'Validation errors exist on 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