Commit 3035380a authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_core: we should use str not object

parent 66749291
......@@ -42,7 +42,7 @@ for portal_type in portal_type_list:
# translate state title as well
if state.getTitle() is not None and state.getTitle() != '':
state_var_title = '%s_title' % state_var
translated_message, msg_id = getTranslatedWorkflowStateWithPortalType(context.Localizer, wf_id, lang, portal_type, state.getTitle())
translated_message, msg_id = getTranslatedWorkflowStateWithPortalType(context.Localizer, wf_id, lang, portal_type.getId(), state.getTitle())
key = (lang, portal_type.getId(), state_var_title, state_reference, msg_id)
if key not in translated_keys:
translated_keys[key] = None # mark as translated
......
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