fixes in blog comments

This commit is contained in:
Anand Doshi
2013-03-12 20:04:30 +05:30
parent 6590316586
commit 2e6806ee6a
3 changed files with 2 additions and 8 deletions

View File

@@ -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""",