Also set close time on ticket creation with close state.

This commit is contained in:
Martin Edenhofer 2012-12-30 12:48:53 +01:00
parent 2c505a5601
commit ec8f36238c

View file

@ -1,7 +1,16 @@
class Observer::Ticket::CloseTime < ActiveRecord::Observer class Observer::Ticket::CloseTime < ActiveRecord::Observer
observe 'ticket' observe 'ticket'
def after_create(record)
_check(record)
end
def after_update(record) def after_update(record)
_check(record)
end
private
def _check(record)
# puts 'check close time' # puts 'check close time'
# return if we run import mode # return if we run import mode