mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
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:
parent
fd0699fbcc
commit
d606187ab7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user