assign_to / messages public bug
This commit is contained in:
parent
38b6af97e5
commit
39b5b0653e
@ -148,7 +148,7 @@ erpnext.Messages = Class.extend({
|
||||
data-name="%(name)s">×</a>', data);
|
||||
}
|
||||
|
||||
if(data.owner==data.comment_docname) {
|
||||
if(data.owner==data.comment_docname && data.parenttype!="Assignment") {
|
||||
data.mark_html = "<div class='message-mark' title='Public'\
|
||||
style='background-color: green'></div>"
|
||||
}
|
||||
|
@ -72,6 +72,7 @@ def post(arg=None):
|
||||
arg.update(webnotes.form_dict)
|
||||
from webnotes.model.doc import Document
|
||||
d = Document('Comment')
|
||||
d.parenttype = arg.get("parenttype")
|
||||
d.comment = arg['txt']
|
||||
d.comment_docname = arg['contact']
|
||||
d.comment_doctype = 'Message'
|
||||
|
Loading…
x
Reference in New Issue
Block a user