Fixed created_by_id.
This commit is contained in:
parent
f75c9f6a76
commit
660ccf9a72
1 changed files with 4 additions and 4 deletions
|
@ -9,7 +9,7 @@ class Ticket::Observer::Notification < ActiveRecord::Observer
|
|||
# puts @@event_buffer.inspect
|
||||
@@event_buffer.each { |event|
|
||||
|
||||
# get current state ob objects
|
||||
# get current state of objects
|
||||
if event[:name] == 'Ticket::Article'
|
||||
article = Ticket::Article.find( event[:id] )
|
||||
ticket = article.ticket
|
||||
|
@ -222,7 +222,7 @@ From: #{article.from}
|
|||
:history_object => 'Ticket',
|
||||
:value_from => notification_subject,
|
||||
:value_to => recipient_list,
|
||||
:created_by_id => ticket.created_by_id || 1
|
||||
:created_by_id => article.created_by_id || 1
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue