From 9dffe32572a446dda0217be7579704f098bf5aa9 Mon Sep 17 00:00:00 2001 From: zmsdev Date: Mon, 2 Oct 2023 18:10:45 +0200 Subject: [PATCH] no auto-session for manage_lang outside zmi --- Products/zms/_multilangmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Products/zms/_multilangmanager.py b/Products/zms/_multilangmanager.py index 27511fb65..c5a8ead6b 100644 --- a/Products/zms/_multilangmanager.py +++ b/Products/zms/_multilangmanager.py @@ -237,7 +237,7 @@ def get_manage_lang(self): """ manage_lang = None req = getattr( self, 'REQUEST', None) - if req is not None: + if req is not None and [x for x in req.get('URL','/manage').split('/') if x.find('manage')]: sess = standard.get_session(self) if 'manage_lang' in req: manage_lang = req.get('manage_lang')