Commit 36c2e98e authored by Jérome Perrin's avatar Jérome Perrin

language is not a valid related key, use language_id

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20810 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent abdfb826
...@@ -70,7 +70,7 @@ glossary_module = context\n ...@@ -70,7 +70,7 @@ glossary_module = context\n
\n \n
for i in catalog(portal_type=\'Glossary Term\',\n for i in catalog(portal_type=\'Glossary Term\',\n
validation_state=\'validated\',\n validation_state=\'validated\',\n
language=\'en\'):\n language_id=\'en\'):\n
\n \n
english_term = i.getObject()\n english_term = i.getObject()\n
\n \n
...@@ -80,7 +80,7 @@ for i in catalog(portal_type=\'Glossary Term\',\n ...@@ -80,7 +80,7 @@ for i in catalog(portal_type=\'Glossary Term\',\n
if catalog.getResultValue(portal_type=\'Glossary Term\',\n if catalog.getResultValue(portal_type=\'Glossary Term\',\n
reference=reference,\n reference=reference,\n
business_field=business_field,\n business_field=business_field,\n
language=language) is not None:\n language_id=language) is not None:\n
continue\n continue\n
\n \n
new_term = glossary_module.newContent(portal_type=\'Glossary Term\',\n new_term = glossary_module.newContent(portal_type=\'Glossary Term\',\n
......
216 217
\ No newline at end of file \ No newline at end of file
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