diff options
author | Go MAEDA <maeda@farend.jp> | 2018-03-25 09:53:15 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-03-25 09:53:15 +0000 |
commit | 8564f7aa850cb89c47e14201641fbe57edd2d08c (patch) | |
tree | bde2e117472314832eb7899338c5198239459a98 /app/views/trackers | |
parent | b37e19e4158ead9990cb15d26ffb38984bd4a2ce (diff) | |
download | redmine-8564f7aa850cb89c47e14201641fbe57edd2d08c.tar.gz redmine-8564f7aa850cb89c47e14201641fbe57edd2d08c.zip |
Merged r17237 from trunk to 3.3-stable (#28393).
Patch by Gregor Schmidt.
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@17239 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/trackers')
-rw-r--r-- | app/views/trackers/_form.html.erb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/trackers/_form.html.erb b/app/views/trackers/_form.html.erb index 7b5b7ea61..3d71d7694 100644 --- a/app/views/trackers/_form.html.erb +++ b/app/views/trackers/_form.html.erb @@ -21,10 +21,11 @@ </p> <%= hidden_field_tag 'tracker[core_fields][]', '' %> -<% if IssueCustomField.all.any? %> +<% @issue_custom_fields = IssueCustomField.sorted %> +<% if @issue_custom_fields.present? %> <p> <label><%= l(:label_custom_field_plural) %></label> - <% IssueCustomField.all.each do |field| %> + <% @issue_custom_fields.each do |field| %> <label class="block"> <%= check_box_tag 'tracker[custom_field_ids][]',field.id, @tracker.custom_fields.to_a.include?(field), :id => nil %> <%= field.name %> |