From 2729f5a7e9861396d9b05f175f193b24ef7cde2b Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Wed, 26 Mar 2014 11:27:12 +0100 Subject: [PATCH] required showed up, but validation needs it on field too. huh. this is not what i expected, but, well, its z3cforms --- plone/app/discussion/browser/comments.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index dd0f0ff..0d58e59 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -110,6 +110,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form): if settings.anonymous_email_enabled: # according to IDiscussionSettings.anonymous_email_enabled: # "If selected, anonymous user will have to give their email." + self.widgets['author_email'].field.required = True self.widgets['author_email'].required = True else: self.widgets['author_email'].mode = interfaces.HIDDEN_MODE