NEW Update GridField creation to be injectable

This commit is contained in:
Franco Springveldt 2017-07-16 18:39:03 +12:00
parent 93c25b764f
commit a626d0a66e

View File

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