Commit 0128b1cc authored by Aurel's avatar Aurel

check we have uid to delete before calling sql method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11732 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 833f6db4
...@@ -338,7 +338,8 @@ class SQLDict(RAMDict): ...@@ -338,7 +338,8 @@ class SQLDict(RAMDict):
uid_list = uid_list_list[i] uid_list = uid_list_list[i]
priority = priority_list[i] priority = priority_list[i]
if m.is_executed: if m.is_executed:
activity_tool.SQLDict_delMessage(uid = uid_list) # Delete it if len(uid_list) > 0:
activity_tool.SQLDict_delMessage(uid = uid_list) # Delete it
get_transaction().commit() # If successful, commit get_transaction().commit() # If successful, commit
if m.active_process: if m.active_process:
active_process = activity_tool.unrestrictedTraverse(m.active_process) active_process = activity_tool.unrestrictedTraverse(m.active_process)
......
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