Fixed created_by_id.

This commit is contained in:
Martin Edenhofer 2012-09-04 18:40:13 +02:00
parent f75c9f6a76
commit 660ccf9a72

View file

@ -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