Skip to content

Commit

Permalink
ENH Remove LastEdited from summary_fields (#1173)
Browse files Browse the repository at this point in the history
  • Loading branch information
baukezwaan authored Dec 20, 2023
1 parent d4378d6 commit 5bcbad6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/Model/Submission/SubmittedForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SubmittedForm extends DataObject

private static $summary_fields = [
'ID',
'Created'
'Created.Nice' => 'Created'
];

private static $table_name = 'SubmittedForm';
Expand Down
6 changes: 1 addition & 5 deletions code/UserForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5bcbad6

Please sign in to comment.