Project

General

Profile

Actions

Defect #33275

closed

Possible values field in list format custom field form is not marked as required

Added by Andreas Baumgärtner over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Custom fields
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

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"


Files

Actions #1

Updated by Go MAEDA over 4 years ago

  • Target version set to Candidate for next minor release
  • Affected version changed from 4.1.1 to 4.0.7

Thank you for reporting the issue. It can be fixed by the following patch.

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>
Actions #2

Updated by Marius BĂLTEANU over 4 years ago

  • Target version changed from Candidate for next minor release to 4.0.8
Actions #3

Updated by Go MAEDA over 4 years ago

  • Subject changed from Custom fields / Format List - "Possible values" is not marked as mandatory (cosmetic) to Possible values field in list format custom field form is not marked as required
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the fix.

Actions

Also available in: Atom PDF