From c8cdfac08cb97bd4711b2fa382973ef40b8f9fa3 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 25 Aug 2015 19:49:26 +0800 Subject: [PATCH] asc sort for responses --- app/views/admin/tickets/_query.html.erb | 2 +- app/views/admin/tickets/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/tickets/_query.html.erb b/app/views/admin/tickets/_query.html.erb index 668cb76..20daf3c 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.desc(:created_at) %> + <%= render :partial => "response", :collection => query.ticket_query_responses.asc(: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 5c9ea8b..cc29b92 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.desc(:created_at) %> + <%= render :partial => "query", :collection => @ticket.ticket_queries.asc(:created_at) %>
<% if params[:reopen] == "true"%> <% if @ticket.status == "closed" %>