diff --git a/code/Model/Submission/SubmittedForm.php b/code/Model/Submission/SubmittedForm.php index 32df390d..8445a32e 100755 --- a/code/Model/Submission/SubmittedForm.php +++ b/code/Model/Submission/SubmittedForm.php @@ -40,7 +40,7 @@ class SubmittedForm extends DataObject private static $summary_fields = [ 'ID', - 'Created' + 'Created.Nice' => 'Created' ]; private static $table_name = 'SubmittedForm'; diff --git a/code/UserForm.php b/code/UserForm.php index 35c9dac3..e29414da 100644 --- a/code/UserForm.php +++ b/code/UserForm.php @@ -303,11 +303,7 @@ public function getSubmissionsGridField() $config->addComponent($print = new GridFieldPrintButton('buttons-after-left')); // show user form items in the summary tab - $summaryarray = array( - 'ID' => 'ID', - 'Created' => 'Created', - 'LastEdited' => 'Last Edited' - ); + $summaryarray = SubmittedForm::singleton()->summaryFields(); foreach (EditableFormField::get()->filter(['ParentID' => $parentID, 'ShowInSummary' => 1]) as $eff) { $summaryarray[$eff->Name] = $eff->Title ?: $eff->Name;