Commit 80c14f97 authored by Nicolas Dumazet's avatar Nicolas Dumazet

only synchronize if we're not unsetting the site


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38668 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d8f4444
...@@ -37,6 +37,7 @@ hooks.getSite = getSite ...@@ -37,6 +37,7 @@ hooks.getSite = getSite
last_cookie_value = None last_cookie_value = None
def setSite(site=None): def setSite(site=None):
_setSite(site) _setSite(site)
if site is not None:
from Products.ERP5Type.Dynamic.portaltypeclass import synchronizeDynamicModules from Products.ERP5Type.Dynamic.portaltypeclass import synchronizeDynamicModules
synchronizeDynamicModules(site) synchronizeDynamicModules(site)
hooks.setSite = setSite hooks.setSite = setSite
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