Commit 9c9248f0 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_project: return empty if not related task/report

parent 7a933eb2
...@@ -36,6 +36,8 @@ task_list.extend([x.getObject() for x in \ ...@@ -36,6 +36,8 @@ task_list.extend([x.getObject() for x in \
source_project_uid = source_project_uid_list, source_project_uid = source_project_uid_list,
simulation_state = task_report_simulation_state, simulation_state = task_report_simulation_state,
**sql_kw)]) **sql_kw)])
if len(task_list) == 0:
return []
key_value = kw.pop('source_title', None) key_value = kw.pop('source_title', None)
if key_value: if key_value:
......
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