Fixed wrong variable use.

This commit is contained in:
Martin Edenhofer 2016-08-23 12:54:29 +02:00
parent 9edcf47edb
commit 14e1b5a404

View file

@ -423,7 +423,7 @@ retrns
ticket = nil ticket = nil
article = nil article = nil
user = nil session_user = nil
# use transaction # use transaction
ActiveRecord::Base.transaction do ActiveRecord::Base.transaction do
@ -565,7 +565,7 @@ retrns
filters.each { |_prio, backend| filters.each { |_prio, backend|
Rails.logger.debug "run postmaster post filter #{backend}" Rails.logger.debug "run postmaster post filter #{backend}"
begin begin
backend.run(channel, mail, ticket, article, user) backend.run(channel, mail, ticket, article, session_user)
rescue => e rescue => e
Rails.logger.error "can't run postmaster post filter #{backend}" Rails.logger.error "can't run postmaster post filter #{backend}"
Rails.logger.error e.inspect Rails.logger.error e.inspect
@ -573,7 +573,7 @@ retrns
} }
# return new objects # return new objects
[ticket, article, user, mail] [ticket, article, session_user, mail]
end end
def set_attributes_by_x_headers(item_object, header_name, mail, suffix = false) def set_attributes_by_x_headers(item_object, header_name, mail, suffix = false)