From 6badbd848537d820dcf7826e39408b047c3c9161 Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Fri, 30 Aug 2024 18:52:12 +0200 Subject: [PATCH] simplify condition which uses CustomField#allow_non_open_versions_possible?, as it already checks for version format --- app/views/custom_fields/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erb index 18f39e1a407b..6480748f59c5 100644 --- a/app/views/custom_fields/_form.html.erb +++ b/app/views/custom_fields/_form.html.erb @@ -118,7 +118,7 @@ See COPYRIGHT and LICENSE files for more details. <% 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? %>
> <%= f.check_box :allow_non_open_versions %>