Moved to new articles mode (which contains order statement).

This commit is contained in:
Martin Edenhofer 2016-12-13 15:54:01 +01:00
parent 212077d81d
commit f79f6634ee

View file

@ -42,7 +42,7 @@ class TicketArticlesController < ApplicationController
articles = []
if params[:expand]
ticket.articles.order('created_at ASC, id ASC').each { |article|
ticket.articles.each { |article|
# ignore internal article if customer is requesting
next if article.internal == true && current_user.permissions?('ticket.customer')
@ -60,7 +60,7 @@ class TicketArticlesController < ApplicationController
if params[:full]
assets = {}
record_ids = []
ticket.articles.order('created_at ASC, id ASC').each { |article|
ticket.articles.each { |article|
# ignore internal article if customer is requesting
next if article.internal == true && current_user.permissions?('ticket.customer')
@ -75,7 +75,7 @@ class TicketArticlesController < ApplicationController
return
end
ticket.articles.order('created_at ASC, id ASC').each { |article|
ticket.articles.each { |article|
# ignore internal article if customer is requesting
next if article.internal == true && current_user.permissions?('ticket.customer')