mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
Merge pull request #357 from creative-commoners/pulls/4/param-order
FIX Parameter order
This commit is contained in:
commit
1ff07ac589
@ -115,12 +115,12 @@ class CommentForm extends Form
|
|||||||
$fields->removeByName('Name');
|
$fields->removeByName('Name');
|
||||||
$fields->removeByName('Email');
|
$fields->removeByName('Email');
|
||||||
$fields->insertBefore(
|
$fields->insertBefore(
|
||||||
|
'URL',
|
||||||
ReadonlyField::create(
|
ReadonlyField::create(
|
||||||
'NameView',
|
'NameView',
|
||||||
_t('CommentInterface.YOURNAME', 'Your name'),
|
_t('CommentInterface.YOURNAME', 'Your name'),
|
||||||
$member->getName()
|
$member->getName()
|
||||||
),
|
)
|
||||||
'URL'
|
|
||||||
);
|
);
|
||||||
$fields->push(HiddenField::create('Name', '', $member->getName()));
|
$fields->push(HiddenField::create('Name', '', $member->getName()));
|
||||||
$fields->push(HiddenField::create('Email', '', $member->Email));
|
$fields->push(HiddenField::create('Email', '', $member->Email));
|
||||||
|
Loading…
Reference in New Issue
Block a user