Do not fail to clean when help selection is None

Closes #13862
(grafted from 7459598460593b98dd6a04ecf24551266290e2eb)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2025-02-09 19:51:04 +01:00
1 parent 32a4b4564e
commit 6ee7e4cd36
1 file changed
+5 -1
+5 -1
View File
@@ -1333,7 +1333,11 @@ class TranslationClean(Wizard):
if not field:
return True
help_ = field.help
help_selection = list(getattr(field, 'help_selection', {}).values())
help_selection = getattr(field, 'help_selection', {})
if help_selection:
help_selection = list(help_selection.values())
else:
help_selection = []
if not help_ and not help_selection:
return True
if translation.src not in list(help_) + help_selection: