OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
simplify condition which uses CustomField#allow_non_open_versions_possible?, as it already checks for version format
Ivan Kuchin6badbd848537
diff --git a/app/views/custom_fields/_form.html.erb b/app/views/custom_fields/_form.html.erbindex 18f39e1a407..6480748f59c 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.</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>