From 6b538f08a00f23e88a231781a594077a851f74c5 Mon Sep 17 00:00:00 2001 From: drfho Date: Tue, 4 Oct 2022 10:40:32 +0200 Subject: [PATCH] clean --- Products/zms/_objinputs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Products/zms/_objinputs.py b/Products/zms/_objinputs.py index 538f5697..26e557a1 100644 --- a/Products/zms/_objinputs.py +++ b/Products/zms/_objinputs.py @@ -98,7 +98,7 @@ def getPasswordInput(self, fmName, elName, size=15, value='', enabled=True, css= # ---------------------------------------------------------------------------- def getTextInput(self, fmName, elName, size=None, value='', type='text', enabled=True, css='form-control', placeholder=''): # In case lang is set to None, use primary language - lang = self.REQUEST.get('lang', None) is not None and self.REQUEST.get('lang',None) or self.getPrimaryLanguage() + lang = self.REQUEST.get('lang') is not None and self.REQUEST.get('lang') or self.getPrimaryLanguage() elId = elName if elId.endswith('_%s'%lang): elId = elId[:-len('_%s'%lang)]