Commit 849bbc0b authored by Jérome Perrin's avatar Jérome Perrin

Only send notifications if there are some open bugs

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24120 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b6f37f4e
......@@ -90,7 +90,8 @@ if not_assigned_bug_list:\n
addBodyLine(" %s/%s/view" % (server_url, bug.getRelativeUrl()))\n
addBodyLine(\'\')\n
\n
portal.portal_notifications.sendMessage(sender=None,\n
if bug_count:\n
portal.portal_notifications.sendMessage(sender=None,\n
recipient=[],\n
subject="%s: %s Open Bugs" % (portal.title_or_id(), bug_count,),\n
message=\'\\n\'.join(body_text_line_list))\n
......
399
\ No newline at end of file
401
\ No newline at end of file
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