Merge pull request #643 from creative-commoners/pulls/4.4/make-gridfield-injectable

NEW Update GridField creation to be injectable
This commit is contained in:
Robbie Averill 2017-07-16 19:55:46 +12:00 committed by GitHub
commit ce65dc557f

View File

@ -75,7 +75,7 @@ class SubmittedForm extends DataObject
)
);
$values = new GridField(
$values = GridField::create(
'Values',
'SubmittedFormField',
$self->Values()->sort('Created', 'ASC')