From d606187ab7f9d739f07ae702f81f04e6c1ef9c23 Mon Sep 17 00:00:00 2001 From: Ruud Arentsen Date: Thu, 26 Jul 2012 09:12:05 +0200 Subject: [PATCH] fixed the issue that the form wouldn't submit fixed the issue that the form wouldn't submit on require_login = true. E-mail field needed to be hidden as well. --- code/controllers/CommentingController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/controllers/CommentingController.php b/code/controllers/CommentingController.php index c042c60..32bbdeb 100644 --- a/code/controllers/CommentingController.php +++ b/code/controllers/CommentingController.php @@ -274,6 +274,7 @@ class CommentingController extends Controller { $fields->removeByName('Email'); $fields->insertBefore(new ReadonlyField("NameView", _t('CommentInterface.YOURNAME', 'Your name'), $member->getName()), 'URL'); $fields->push(new HiddenField("Name", "", $member->getName())); + $fields->push(new HiddenField("Email", "", $member->Email)); $form->setFields($fields); }