Skip to content

Commit

Permalink
simplify condition which uses CustomField#allow_non_open_versions_pos…
Browse files Browse the repository at this point in the history
…sible?, as it already checks for version format
  • Loading branch information
toy committed Sep 10, 2024
1 parent 9382b12 commit 6badbd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/custom_fields/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ See COPYRIGHT and LICENSE files for more details.
</fieldset>
<% end %>

<% if @custom_field.new_record? || @custom_field.version? || @custom_field.allow_non_open_versions_possible? %>
<% if @custom_field.new_record? || @custom_field.allow_non_open_versions_possible? %>
<div class="form--field" <%= format_dependent.attributes(:allowNonOpenVersions) %>>
<%= f.check_box :allow_non_open_versions %>
</div>
Expand Down

0 comments on commit 6badbd8

Please sign in to comment.