Only use activity log after system init is done.
This commit is contained in:
parent
0b76a38fe3
commit
caaad57691
3 changed files with 9 additions and 0 deletions
|
@ -23,6 +23,9 @@ returns
|
|||
# return if we run import mode
|
||||
return if Setting.get('import_mode')
|
||||
|
||||
# return if we run on init mode
|
||||
return if !Setting.get('system_init_done')
|
||||
|
||||
role = self.class.activity_stream_support_config[:role]
|
||||
updated_at = self.updated_at
|
||||
if force
|
||||
|
|
|
@ -20,6 +20,9 @@ returns
|
|||
# return if we run import mode
|
||||
return if Setting.get('import_mode')
|
||||
|
||||
# return if we run on init mode
|
||||
return if !Setting.get('system_init_done')
|
||||
|
||||
return if !self.class.activity_stream_support_config
|
||||
role = self.class.activity_stream_support_config[:role]
|
||||
ActivityStream.add(
|
||||
|
|
|
@ -20,6 +20,9 @@ returns
|
|||
# return if we run import mode
|
||||
return if Setting.get('import_mode')
|
||||
|
||||
# return if we run on init mode
|
||||
return if !Setting.get('system_init_done')
|
||||
|
||||
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