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)]