Commit e78dcf2b authored by Yusei Tahara's avatar Yusei Tahara

don't assume that business_field_id == business_field_title in catalog searches

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24194 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ef6f066
......@@ -86,7 +86,7 @@ catalog = context.portal_catalog\n
\n
for i in catalog(portal_type=\'Glossary Term\',\n
validation_state=\'validated\',\n
business_field_title=business_field_list,\n
business_field_id=business_field_list,\n
language_id=language):\n
term = i.getObject()\n
reference = term.getReference()\n
......@@ -96,7 +96,7 @@ for i in catalog(portal_type=\'Glossary Term\',\n
validation_state=\'validated\',\n
language_id=\'en\',\n
reference=reference,\n
business_field_title=business_field)\n
business_field_uid=term.getBusinessFieldUid())\n
if english_term is None:\n
raise ValueError, \'Corresponding English term to "%s" does not exist in glossary.\' % term.Title()\n
\n
......
402
\ No newline at end of file
403
\ 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