mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 17:55:40 +00:00
Merge branch 'master' of github.com:webnotes/erpnext into edge
This commit is contained in:
@@ -53,13 +53,15 @@ class DocType:
|
||||
del self.doc.fields[f]
|
||||
|
||||
def validate_colors(self):
|
||||
if self.doc.page_background==self.doc.page_text:
|
||||
webnotes.msgprint(_("Page text and background is same color. Please change."),
|
||||
raise_exception=1)
|
||||
if (self.doc.page_background or self.doc.page_text) and \
|
||||
self.doc.page_background==self.doc.page_text:
|
||||
webnotes.msgprint(_("Page text and background is same color. Please change."),
|
||||
raise_exception=1)
|
||||
|
||||
if self.doc.top_bar_background==self.doc.top_bar_foreground:
|
||||
webnotes.msgprint(_("Top Bar text and background is same color. Please change."),
|
||||
raise_exception=1)
|
||||
if (self.doc.top_bar_background or self.doc.top_bar_foreground) and \
|
||||
self.doc.top_bar_background==self.doc.top_bar_foreground:
|
||||
webnotes.msgprint(_("Top Bar text and background is same color. Please change."),
|
||||
raise_exception=1)
|
||||
|
||||
|
||||
def prepare(self):
|
||||
|
||||
@@ -83,7 +83,7 @@ def add_comment(args=None):
|
||||
|
||||
# notify commentors
|
||||
commentors = [d[0] for d in webnotes.conn.sql("""select comment_by from tabComment where
|
||||
comment_doctype='Blog' and comment_docname=%s and
|
||||
comment_doctype='Blog Post' and comment_docname=%s and
|
||||
ifnull(unsubscribed, 0)=0""", args.get('comment_docname'))]
|
||||
|
||||
blog = webnotes.conn.sql("""select * from `tabBlog Post` where name=%s""",
|
||||
|
||||
@@ -36,7 +36,7 @@ $(document).ready(function() {
|
||||
comment_by: $("[name='comment_by']").val(),
|
||||
comment: $("[name='comment']").val(),
|
||||
cmd: "website.helpers.blog.add_comment",
|
||||
comment_doctype: "Blog",
|
||||
comment_doctype: "Blog Post",
|
||||
comment_docname: "{{ name }}",
|
||||
page_name: "{{ page_name }}",
|
||||
_type: "POST"
|
||||
|
||||
Reference in New Issue
Block a user