Skip to content

Commit

Permalink
Added required="true" to the similar terms search input to prevent a …
Browse files Browse the repository at this point in the history
…HTTP 400 error page, when nothing is submitted.
  • Loading branch information
pschijven committed Jun 20, 2024
1 parent e08af3b commit 793c3f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/similar_terms/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<div class="col">
<%= f.text_field :terms, hide_label: true, autofocus: (@terms ? false : true), wrapper_class: 'mb-0',
class: 'form-control-lg form-control-borderless border-0', autocomplete: 'off',
required: true,
value: (@terms ? InlineDataHelper.generate_inline_values(@terms) : params[:terms])
%>
</div>
Expand Down

0 comments on commit 793c3f3

Please sign in to comment.