don't ignore user_notification checkbox.
This commit is contained in:
parent
6a96717677
commit
4d1e7b5806
@ -163,7 +163,6 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
|||||||
|
|
||||||
# some attributes are not always set
|
# some attributes are not always set
|
||||||
author_name = u""
|
author_name = u""
|
||||||
author_email = u""
|
|
||||||
user_notification = None
|
user_notification = None
|
||||||
|
|
||||||
# Create comment
|
# Create comment
|
||||||
@ -189,8 +188,8 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
|||||||
settings.anonymous_comments:
|
settings.anonymous_comments:
|
||||||
# Anonymous Users
|
# Anonymous Users
|
||||||
comment.author_name = author_name
|
comment.author_name = author_name
|
||||||
comment.author_email = author_email
|
comment.author_email = u""
|
||||||
comment.user_notification = user_notification
|
comment.user_notification = None
|
||||||
comment.creation_date = datetime.utcnow()
|
comment.creation_date = datetime.utcnow()
|
||||||
comment.modification_date = datetime.utcnow()
|
comment.modification_date = datetime.utcnow()
|
||||||
elif not portal_membership.isAnonymousUser() and can_reply:
|
elif not portal_membership.isAnonymousUser() and can_reply:
|
||||||
@ -210,7 +209,6 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
|||||||
comment.author_username = username
|
comment.author_username = username
|
||||||
comment.author_name = fullname
|
comment.author_name = fullname
|
||||||
comment.author_email = email
|
comment.author_email = email
|
||||||
comment.user_notification = user_notification
|
|
||||||
comment.creation_date = datetime.utcnow()
|
comment.creation_date = datetime.utcnow()
|
||||||
comment.modification_date = datetime.utcnow()
|
comment.modification_date = datetime.utcnow()
|
||||||
else: # pragma: no cover
|
else: # pragma: no cover
|
||||||
|
Loading…
Reference in New Issue
Block a user