diff --git a/erpnext/utilities/page/messages/messages.py b/erpnext/utilities/page/messages/messages.py index 900fa6cfdf..3a407ddb55 100644 --- a/erpnext/utilities/page/messages/messages.py +++ b/erpnext/utilities/page/messages/messages.py @@ -56,6 +56,12 @@ def get_active_users(arg=None): @webnotes.whitelist() def post(arg=None): """post message""" + if arg: + import json + arg = json.loads(arg) + else: + arg = {} + arg.update(webnotes.form_dict) from webnotes.model.doc import Document d = Document('Comment Widget Record') d.comment = arg['txt']