Moved to new articles mode (which contains order statement).
This commit is contained in:
parent
212077d81d
commit
f79f6634ee
1 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ class TicketArticlesController < ApplicationController
|
||||||
articles = []
|
articles = []
|
||||||
|
|
||||||
if params[:expand]
|
if params[:expand]
|
||||||
ticket.articles.order('created_at ASC, id ASC').each { |article|
|
ticket.articles.each { |article|
|
||||||
|
|
||||||
# ignore internal article if customer is requesting
|
# ignore internal article if customer is requesting
|
||||||
next if article.internal == true && current_user.permissions?('ticket.customer')
|
next if article.internal == true && current_user.permissions?('ticket.customer')
|
||||||
|
@ -60,7 +60,7 @@ class TicketArticlesController < ApplicationController
|
||||||
if params[:full]
|
if params[:full]
|
||||||
assets = {}
|
assets = {}
|
||||||
record_ids = []
|
record_ids = []
|
||||||
ticket.articles.order('created_at ASC, id ASC').each { |article|
|
ticket.articles.each { |article|
|
||||||
|
|
||||||
# ignore internal article if customer is requesting
|
# ignore internal article if customer is requesting
|
||||||
next if article.internal == true && current_user.permissions?('ticket.customer')
|
next if article.internal == true && current_user.permissions?('ticket.customer')
|
||||||
|
@ -75,7 +75,7 @@ class TicketArticlesController < ApplicationController
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
ticket.articles.order('created_at ASC, id ASC').each { |article|
|
ticket.articles.each { |article|
|
||||||
|
|
||||||
# ignore internal article if customer is requesting
|
# ignore internal article if customer is requesting
|
||||||
next if article.internal == true && current_user.permissions?('ticket.customer')
|
next if article.internal == true && current_user.permissions?('ticket.customer')
|
||||||
|
|
Loading…
Reference in a new issue