Skip to content

Commit

Permalink
Merge pull request #238 from logicbrush/hotfix/translatable_fix
Browse files Browse the repository at this point in the history
fix naming of gridfield so it works with translatable.
  • Loading branch information
wilr committed Oct 28, 2014
2 parents fcba06c + 083bba0 commit 8303f27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/model/UserDefinedForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function getCMSFields() {

// view the submissions
$submissions = new GridField(
"Reports",
"Submissions",
_t('UserDefinedForm.SUBMISSIONS', 'Submissions'),
$this->Submissions()->sort('Created', 'DESC')
);
Expand Down
2 changes: 1 addition & 1 deletion tests/UserDefinedFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function testGetCMSFields() {

$this->assertTrue($fields->dataFieldByName('Fields') !== 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);
}

Expand Down

0 comments on commit 8303f27

Please sign in to comment.