mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge pull request #238 from logicbrush/hotfix/translatable_fix
fix naming of gridfield so it works with translatable.
This commit is contained in:
commit
8303f27c39
@ -107,7 +107,7 @@ class UserDefinedForm extends Page {
|
|||||||
|
|
||||||
// view the submissions
|
// view the submissions
|
||||||
$submissions = new GridField(
|
$submissions = new GridField(
|
||||||
"Reports",
|
"Submissions",
|
||||||
_t('UserDefinedForm.SUBMISSIONS', 'Submissions'),
|
_t('UserDefinedForm.SUBMISSIONS', 'Submissions'),
|
||||||
$this->Submissions()->sort('Created', 'DESC')
|
$this->Submissions()->sort('Created', 'DESC')
|
||||||
);
|
);
|
||||||
|
@ -45,7 +45,7 @@ class UserDefinedFormTest extends FunctionalTest {
|
|||||||
|
|
||||||
$this->assertTrue($fields->dataFieldByName('Fields') !== null);
|
$this->assertTrue($fields->dataFieldByName('Fields') !== null);
|
||||||
$this->assertTrue($fields->dataFieldByName('EmailRecipients') != null);
|
$this->assertTrue($fields->dataFieldByName('EmailRecipients') != null);
|
||||||
$this->assertTrue($fields->dataFieldByName('Reports') != null);
|
$this->assertTrue($fields->dataFieldByName('Submissions') != null);
|
||||||
$this->assertTrue($fields->dataFieldByName('OnCompleteMessage') != null);
|
$this->assertTrue($fields->dataFieldByName('OnCompleteMessage') != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user