Commit 13919866 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

erp5_core: ERP5Site_updateTranslationTable get id and title by old way.

parent 15d3e426
...@@ -74,7 +74,7 @@ portal_workflow = context.portal_workflow\n ...@@ -74,7 +74,7 @@ portal_workflow = context.portal_workflow\n
portal_type_list = context.portal_types.objectValues()\n portal_type_list = context.portal_types.objectValues()\n
chain_dict = portal_workflow.getChainsByType()\n chain_dict = portal_workflow.getChainsByType()\n
for portal_type in portal_type_list:\n for portal_type in portal_type_list:\n
pt_id = portal_type.getId()\n pt_id = portal_type.id\n
associated_workflow_id_list = []\n associated_workflow_id_list = []\n
associated_workflow_id_list.extend(portal_type.getTypeWorkflowList())\n associated_workflow_id_list.extend(portal_type.getTypeWorkflowList())\n
if pt_id in chain_dict:\n if pt_id in chain_dict:\n
...@@ -96,7 +96,7 @@ for portal_type in portal_type_list:\n ...@@ -96,7 +96,7 @@ for portal_type in portal_type_list:\n
translated_message=translated_message))\n translated_message=translated_message))\n
\n \n
# translate state title as well\n # translate state title as well\n
state_title = state.getTitle()\n state_title = state.title\n
if state_title is not None and state_title != \'\':\n if state_title is not None and state_title != \'\':\n
state_var_title = \'%s_title\' % state_var\n state_var_title = \'%s_title\' % state_var\n
msg_id = getMessageIdWithContext(state_title, \'state\', wf_id)\n msg_id = getMessageIdWithContext(state_title, \'state\', wf_id)\n
......
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