Added import mode support.
This commit is contained in:
parent
a549f94037
commit
c17626ef37
3 changed files with 12 additions and 0 deletions
|
@ -19,6 +19,10 @@ returns
|
|||
=end
|
||||
|
||||
def activity_stream_log (type, user_id, force = false)
|
||||
|
||||
# return if we run import mode
|
||||
return if Setting.get('import_mode')
|
||||
|
||||
role = self.class.activity_stream_support_config[:role]
|
||||
updated_at = self.updated_at
|
||||
if force
|
||||
|
|
|
@ -16,6 +16,10 @@ returns
|
|||
=end
|
||||
|
||||
def activity_stream_log (type, user_id)
|
||||
|
||||
# return if we run import mode
|
||||
return if Setting.get('import_mode')
|
||||
|
||||
return if !self.class.activity_stream_support_config
|
||||
role = self.class.activity_stream_support_config[:role]
|
||||
ActivityStream.add(
|
||||
|
|
|
@ -16,6 +16,10 @@ returns
|
|||
=end
|
||||
|
||||
def activity_stream_log (type, user_id)
|
||||
|
||||
# return if we run import mode
|
||||
return if Setting.get('import_mode')
|
||||
|
||||
return if !self.class.activity_stream_support_config
|
||||
role = self.class.activity_stream_support_config[:role]
|
||||
ticket = Ticket.lookup( :id => self.ticket_id )
|
||||
|
|
Loading…
Reference in a new issue