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 we run import mode
|
||||||
return if Setting.get('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]
|
role = self.class.activity_stream_support_config[:role]
|
||||||
updated_at = self.updated_at
|
updated_at = self.updated_at
|
||||||
if force
|
if force
|
||||||
|
|
|
@ -20,6 +20,9 @@ returns
|
||||||
# return if we run import mode
|
# return if we run import mode
|
||||||
return if Setting.get('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
|
return if !self.class.activity_stream_support_config
|
||||||
role = self.class.activity_stream_support_config[:role]
|
role = self.class.activity_stream_support_config[:role]
|
||||||
ActivityStream.add(
|
ActivityStream.add(
|
||||||
|
|
|
@ -20,6 +20,9 @@ returns
|
||||||
# return if we run import mode
|
# return if we run import mode
|
||||||
return if Setting.get('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
|
return if !self.class.activity_stream_support_config
|
||||||
role = self.class.activity_stream_support_config[:role]
|
role = self.class.activity_stream_support_config[:role]
|
||||||
ticket = Ticket.lookup( :id => self.ticket_id )
|
ticket = Ticket.lookup( :id => self.ticket_id )
|
||||||
|
|
Loading…
Reference in a new issue