Commit 972cef91 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.
parent cc9869aa
......@@ -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