mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
ENH Remove LastEdited from summary_fields (#1173)
This commit is contained in:
parent
d4378d6c75
commit
5bcbad6a79
@ -40,7 +40,7 @@ class SubmittedForm extends DataObject
|
||||
|
||||
private static $summary_fields = [
|
||||
'ID',
|
||||
'Created'
|
||||
'Created.Nice' => 'Created'
|
||||
];
|
||||
|
||||
private static $table_name = 'SubmittedForm';
|
||||
|
@ -303,11 +303,7 @@ SQL;
|
||||
$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;
|
||||
|
Loading…
Reference in New Issue
Block a user