messages.py use begin/commit for messages
diff --git a/utilities/page/messages/messages.py b/utilities/page/messages/messages.py
index bec0e32..7fbc101 100644
--- a/utilities/page/messages/messages.py
+++ b/utilities/page/messages/messages.py
@@ -25,10 +25,12 @@
webnotes.form_dict['user'] = webnotes.session['user']
# set all messages as read
+ webnotes.conn.begin()
webnotes.conn.sql("""UPDATE `tabComment`
set docstatus = 1 where comment_doctype in ('My Company', 'Message')
and comment_docname = %s
""", webnotes.user.name)
+ webnotes.conn.commit()
if webnotes.form_dict['contact'] == webnotes.session['user']:
# return messages