Fixed wrong variable use.
This commit is contained in:
parent
9edcf47edb
commit
14e1b5a404
1 changed files with 5 additions and 5 deletions
|
@ -421,9 +421,9 @@ retrns
|
||||||
original_interface_handle = ApplicationHandleInfo.current
|
original_interface_handle = ApplicationHandleInfo.current
|
||||||
ApplicationHandleInfo.current = "#{original_interface_handle}.postmaster"
|
ApplicationHandleInfo.current = "#{original_interface_handle}.postmaster"
|
||||||
|
|
||||||
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)
|
||||||
|
|
Loading…
Reference in a new issue