Merge pull request #357 from creative-commoners/pulls/4/param-order

FIX Parameter order
This commit is contained in:
Maxime Rainville 2023-01-20 14:37:01 +13:00 committed by GitHub
commit 1ff07ac589
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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