#3178: impediments are displayed in the order in which the user sorted them even after a reload

pull/6827/head
Jens Ulferts 14 years ago
parent ca51ba6a08
commit 02f64ae3ad
  1. 2
      app/views/rb_taskboards/show.html.erb

@ -56,7 +56,7 @@
<% @statuses.each do |status| %> <% @statuses.each do |status| %>
<td class="swimlane list <%= status.is_closed? ? 'closed' : '' %>" id="impcell_<%= status.id %>"> <td class="swimlane list <%= status.is_closed? ? 'closed' : '' %>" id="impcell_<%= status.id %>">
<%= render :partial => "rb_impediments/impediment", <%= render :partial => "rb_impediments/impediment",
:collection => @sprint.impediments.select { |impediment| impediment.status_id == status.id } %> :collection => @sprint.impediments.select{ |i| i.status_id == status.id }.sort_by {|i| i.position } %>
</td> </td>
<% end %> <% end %>
</tr> </tr>

Loading…
Cancel
Save