From 75858dab7a99db22389214c46ad9ca813a26cb8d Mon Sep 17 00:00:00 2001 From: John Learn Date: Tue, 21 Oct 2014 12:52:43 -0400 Subject: [PATCH 1/2] fix naming of gridfield so it works with translatable. --- code/model/UserDefinedForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/model/UserDefinedForm.php b/code/model/UserDefinedForm.php index a1eeb64..b0953df 100755 --- a/code/model/UserDefinedForm.php +++ b/code/model/UserDefinedForm.php @@ -107,7 +107,7 @@ class UserDefinedForm extends Page { // view the submissions $submissions = new GridField( - "Reports", + "Submissions", _t('UserDefinedForm.SUBMISSIONS', 'Submissions'), $this->Submissions()->sort('Created', 'DESC') ); From 083bba0c75d58c81e64d9430d24d8aeea1bc18b2 Mon Sep 17 00:00:00 2001 From: John Learn Date: Mon, 27 Oct 2014 11:38:14 -0400 Subject: [PATCH 2/2] update failing test w/new field name. --- tests/UserDefinedFormTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/UserDefinedFormTest.php b/tests/UserDefinedFormTest.php index ffc0310..3287a3d 100644 --- a/tests/UserDefinedFormTest.php +++ b/tests/UserDefinedFormTest.php @@ -45,7 +45,7 @@ class UserDefinedFormTest extends FunctionalTest { $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); }