Merge branch 'handlerupdate' of github.com:webnotes/erpnext into handlerupdate
This commit is contained in:
commit
fe89da76a0
@ -56,6 +56,12 @@ def get_active_users(arg=None):
|
|||||||
@webnotes.whitelist()
|
@webnotes.whitelist()
|
||||||
def post(arg=None):
|
def post(arg=None):
|
||||||
"""post message"""
|
"""post message"""
|
||||||
|
if arg:
|
||||||
|
import json
|
||||||
|
arg = json.loads(arg)
|
||||||
|
else:
|
||||||
|
arg = {}
|
||||||
|
arg.update(webnotes.form_dict)
|
||||||
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']
|
||||||
|
Loading…
Reference in New Issue
Block a user