Vote #81525
未完了Fix position when rendering custom field enumerations
0%
説明
The position of each custom field enumeration is integrated as hidden
field in the corresponding index.html.erb file.
When iterating over all enumerations for a certain field, the iteration
is done with an index information of the array, what contains all enumerations.
This index information again is used as the value for the position.
This is wrong, since the (array) index starts counting from zero whereas the position
numbers start counting from 1.
This is fixed now by increasing the position by 1 as stated below.
diff --git a/app/views/custom_field_enumerations/index.html.erb b/app/views/custom_field_enumerations/index.html.erb index 83e9d59c9..45398728f 100755 --- a/app/views/custom_field_enumerations/index.html.erb +++ b/app/views/custom_field_enumerations/index.html.erb @@ -7,7 +7,7 @@ <% @custom_field.enumerations.each_with_index do |value, position| %>
journals
The topmost position value is 0 when you open /custom_fields/*/enumerations, but it changes to 1 if you reorder values by drag and drop.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Admin Redmine さんが約2年前に更新
- カテゴリ を Custom fields_14 にセット
- 対象バージョン を Candidate for next major release_32 にセット