Commit eb9145da authored by Ivan Tyagov's avatar Ivan Tyagov

Since 7b4a3d4c instead of subscribing after add code unsubscribed which is…

Since 7b4a3d4c instead of subscribing after add code unsubscribed which is illogical. Revert back. Credit Kaz.

Tests passing : https://nexedi.erp5.net/test_result_module/20200327-660269E/view?ignore_layout:int=1

See merge request !1092
parents 12e34c64 972cef91
......@@ -2382,8 +2382,6 @@ class ERP5Generator(PortalGenerator):
self.setupWorkflow(p)
self.setupERP5Core(p,**kw)
self.setupERP5Promise(p,**kw)
# subscribe portal_alarms
p.portal_alarms.subscribe()
# Make sure the cache is initialized
p.portal_caches.updateCache()
......
......@@ -76,7 +76,7 @@ class TimerServiceMixin(object):
security.declarePrivate('manage_afterAdd')
def manage_afterAdd(self, *args, **kw):
self.unsubscribe()
self.subscribe()
super(TimerServiceMixin, self).manage_afterAdd(*args, **kw)
security.declarePublic('getCurrentNode')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment