don't ignore user_notification checkbox.

This commit is contained in:
Izak Burger 2012-09-17 23:51:15 +02:00
parent 6a96717677
commit 4d1e7b5806

View File

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