diff --git a/app/views/admin/tickets/_query.html.erb b/app/views/admin/tickets/_query.html.erb index a4cdac3..668cb76 100644 --- a/app/views/admin/tickets/_query.html.erb +++ b/app/views/admin/tickets/_query.html.erb @@ -8,7 +8,7 @@ Response
> - <%= render :partial => "response", :collection => query.ticket_query_responses %> + <%= render :partial => "response", :collection => query.ticket_query_responses.desc(:created_at) %>
<% if params[:reopen] != "true" && @ticket.ticket_queries.count == (query_counter + 1) %>
diff --git a/app/views/admin/tickets/show.html.erb b/app/views/admin/tickets/show.html.erb index d5128f1..5c9ea8b 100644 --- a/app/views/admin/tickets/show.html.erb +++ b/app/views/admin/tickets/show.html.erb @@ -138,7 +138,7 @@
- <%= render :partial => "query", :collection => @ticket.ticket_queries %> + <%= render :partial => "query", :collection => @ticket.ticket_queries.desc(:created_at) %>
<% if params[:reopen] == "true"%> <% if @ticket.status == "closed" %>