Store tags into value_to field.
This commit is contained in:
parent
1fefcf8d83
commit
097b24a07e
1 changed files with 4 additions and 4 deletions
|
@ -15,8 +15,8 @@ class Observer::Tag::TicketHistory < ActiveRecord::Observer
|
||||||
:o_id => record.o_id,
|
:o_id => record.o_id,
|
||||||
:history_type => 'added',
|
:history_type => 'added',
|
||||||
:history_object => 'Ticket',
|
:history_object => 'Ticket',
|
||||||
:history_attribute => 'Tag',
|
:history_attribute => 'tag',
|
||||||
:value_from => record.tag_item.name,
|
:value_to => record.tag_item.name,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
def after_destroy(record)
|
def after_destroy(record)
|
||||||
|
@ -29,8 +29,8 @@ class Observer::Tag::TicketHistory < ActiveRecord::Observer
|
||||||
:o_id => record.o_id,
|
:o_id => record.o_id,
|
||||||
:history_type => 'removed',
|
:history_type => 'removed',
|
||||||
:history_object => 'Ticket',
|
:history_object => 'Ticket',
|
||||||
:history_attribute => 'Tag',
|
:history_attribute => 'tag',
|
||||||
:value_from => record.tag_item.name,
|
:value_to => record.tag_item.name,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue