Commit 7f199a27 authored by Xiaowu Zhang's avatar Xiaowu Zhang Committed by Cédric Le Ninivin

erp5_core: we should use str not object

parent c640b10c
......@@ -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