There is no need to set the title in the handleComment method anymore.
svn path=/plone.app.discussion/trunk/; revision=40492
This commit is contained in:
parent
e0055d0ba7
commit
497c2a075e
@ -105,7 +105,6 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
|||||||
if errors:
|
if errors:
|
||||||
return
|
return
|
||||||
|
|
||||||
title = u""
|
|
||||||
text = u""
|
text = u""
|
||||||
author_name = u""
|
author_name = u""
|
||||||
author_email = u""
|
author_email = u""
|
||||||
@ -129,8 +128,6 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
|||||||
captcha.validate(data['captcha'])
|
captcha.validate(data['captcha'])
|
||||||
|
|
||||||
# Fetch data from request
|
# Fetch data from request
|
||||||
if 'title' in data:
|
|
||||||
title = data['title']
|
|
||||||
if 'text' in data:
|
if 'text' in data:
|
||||||
text = data['text']
|
text = data['text']
|
||||||
if 'author_name' in data:
|
if 'author_name' in data:
|
||||||
@ -155,7 +152,6 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
|||||||
|
|
||||||
# Create the comment
|
# Create the comment
|
||||||
comment = createObject('plone.Comment')
|
comment = createObject('plone.Comment')
|
||||||
comment.title = title
|
|
||||||
comment.text = text
|
comment.text = text
|
||||||
|
|
||||||
portal_membership = getToolByName(self.context, 'portal_membership')
|
portal_membership = getToolByName(self.context, 'portal_membership')
|
||||||
|
Loading…
Reference in New Issue
Block a user