Vote #80802
完了Possible values field in list format custom field form is not marked as required
0%
説明
when creating a custom field of format List, "Possible values" is not marked as mandatory - * is missing.
see screenshot - error when trying to save with empty "Possible values"
!redmine_custom_fields_format_list_empty_error.jpg!
journals
Thank you for reporting the issue. It can be fixed by the following patch.
<pre><code class="diff">
diff --git a/app/views/custom_fields/formats/_list.html.erb b/app/views/custom_fields/formats/_list.html.erb
index 675bbbf8d..f615e5057 100644
--- a/app/views/custom_fields/formats/_list.html.erb
+++ b/app/views/custom_fields/formats/_list.html.erb
@@ -1,5 +1,5 @@
<p>
- <%= f.text_area :possible_values, :value => @custom_field.possible_values.to_a.join("\n"), :rows => 15 %>
+ <%= f.text_area :possible_values, :value => @custom_field.possible_values.to_a.join("\n"), :rows => 15, :required => true %>
<em class="info"><%= l(:text_custom_field_possible_values_info) %></em>
</p>
<p><%= f.text_field(:default_value) %></p>
</code></pre>
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Committed the fix.
--------------------------------------------------------------------------------