From 097b24a07ece5b5cae7395ef8b5e23c651fb502f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 29 Sep 2013 19:23:25 +0200 Subject: [PATCH] Store tags into value_to field. --- app/models/observer/tag/ticket_history.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/observer/tag/ticket_history.rb b/app/models/observer/tag/ticket_history.rb index 6fbf603ad..a127449a7 100644 --- a/app/models/observer/tag/ticket_history.rb +++ b/app/models/observer/tag/ticket_history.rb @@ -15,8 +15,8 @@ class Observer::Tag::TicketHistory < ActiveRecord::Observer :o_id => record.o_id, :history_type => 'added', :history_object => 'Ticket', - :history_attribute => 'Tag', - :value_from => record.tag_item.name, + :history_attribute => 'tag', + :value_to => record.tag_item.name, ) end def after_destroy(record) @@ -29,8 +29,8 @@ class Observer::Tag::TicketHistory < ActiveRecord::Observer :o_id => record.o_id, :history_type => 'removed', :history_object => 'Ticket', - :history_attribute => 'Tag', - :value_from => record.tag_item.name, + :history_attribute => 'tag', + :value_to => record.tag_item.name, ) end end