Commit 645ca66e authored by Jérome Perrin's avatar Jérome Perrin

bug fix, translation_service was a not existing variable


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5153 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b87d7876
......@@ -439,7 +439,9 @@ class MultiRelationStringFieldValidator(Validator.LinesValidator, RelationField
# Get the query results
relation_list = portal_catalog(**kw)
relation_uid_list = map(lambda x: x.uid, relation_list)
translation_service = getToolByName(field,
'translation_service',
None)
# Prepare a menu
if translation_service is not None:
N_ = translation_service.translate
......
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