Commit b5d34ab6 authored by Vincent Pelletier's avatar Vincent Pelletier

Cast retrieved count as an int, since it can be returned as a string when...

Cast retrieved count as an int, since it can be returned as a string when using ZSQLMethod instead of portal catalog.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17370 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c107304e
......@@ -399,7 +399,7 @@ def sumCatalogResultByWorklist(grouped_worklist_dict, catalog_result):
criterion_value_to_worklist_key_dict[criterion_value_key]:
count = worklist_result_dict.get(worklist_id, 0)
worklist_result_dict[worklist_id] = count + \
result_line[COUNT_COLUMN_TITLE]
int(result_line[COUNT_COLUMN_TITLE])
return worklist_result_dict
def generateActionList(worklist_metadata, worklist_result, portal_url):
......
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