mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
fix in messages
This commit is contained in:
@@ -56,8 +56,6 @@ def get_active_users(arg=None):
|
|||||||
@webnotes.whitelist()
|
@webnotes.whitelist()
|
||||||
def post(arg=None):
|
def post(arg=None):
|
||||||
"""post message"""
|
"""post message"""
|
||||||
import json
|
|
||||||
arg = json.loads(arg)
|
|
||||||
from webnotes.model.doc import Document
|
from webnotes.model.doc import Document
|
||||||
d = Document('Comment Widget Record')
|
d = Document('Comment Widget Record')
|
||||||
d.comment = arg['txt']
|
d.comment = arg['txt']
|
||||||
@@ -69,4 +67,4 @@ def post(arg=None):
|
|||||||
def delete(arg=None):
|
def delete(arg=None):
|
||||||
webnotes.conn.sql("""delete from `tabComment Widget Record` where name=%s""",
|
webnotes.conn.sql("""delete from `tabComment Widget Record` where name=%s""",
|
||||||
webnotes.form_dict['name']);
|
webnotes.form_dict['name']);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user