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.
This commit is contained in:
Ruud Arentsen 2012-07-26 09:12:05 +02:00
parent fd0699fbcc
commit d606187ab7
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}