diff options
-rw-r--r-- | app/views/queries/_form.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/queries/_form.html.erb b/app/views/queries/_form.html.erb index dcafe9f60..2d9d81d28 100644 --- a/app/views/queries/_form.html.erb +++ b/app/views/queries/_form.html.erb @@ -31,9 +31,9 @@ <fieldset><legend><%= l(:label_sort) %></legend> <% 3.times do |i| %> <%= i+1 %>: <%= select_tag("query[sort_criteria][#{i}][]", - options_for_select([[]] + query.available_columns.select(&:sortable?).collect {|column| [column.caption, column.name.to_s]}, @query.sort_criteria_key(i))) %> - <%= select_tag("query[sort_criteria][#{i}][]", - options_for_select([[], [l(:label_ascending), 'asc'], [l(:label_descending), 'desc']], @query.sort_criteria_order(i))) %><br /> + options_for_select([[]] + query.available_columns.select(&:sortable?).collect {|column| [column.caption, column.name.to_s]}, @query.sort_criteria_key(i))) %> + <%= select_tag("query[sort_criteria][#{i}][]", + options_for_select([[], [l(:label_ascending), 'asc'], [l(:label_descending), 'desc']], @query.sort_criteria_order(i))) %><br /> <% end %> </fieldset> |