From 4d1e7b58068e0adceffcd585474f3b366e7541b9 Mon Sep 17 00:00:00 2001 From: Izak Burger Date: Mon, 17 Sep 2012 23:51:15 +0200 Subject: [PATCH] don't ignore user_notification checkbox. --- plone/app/discussion/browser/comments.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index 6be93a2..16629b3 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -163,7 +163,6 @@ class CommentForm(extensible.ExtensibleForm, form.Form): # some attributes are not always set author_name = u"" - author_email = u"" user_notification = None # Create comment @@ -189,8 +188,8 @@ class CommentForm(extensible.ExtensibleForm, form.Form): settings.anonymous_comments: # Anonymous Users comment.author_name = author_name - comment.author_email = author_email - comment.user_notification = user_notification + comment.author_email = u"" + comment.user_notification = None comment.creation_date = datetime.utcnow() comment.modification_date = datetime.utcnow() elif not portal_membership.isAnonymousUser() and can_reply: @@ -210,7 +209,6 @@ class CommentForm(extensible.ExtensibleForm, form.Form): comment.author_username = username comment.author_name = fullname comment.author_email = email - comment.user_notification = user_notification comment.creation_date = datetime.utcnow() comment.modification_date = datetime.utcnow() else: # pragma: no cover