mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG Localize DataObject->summaryFields()
This commit is contained in:
parent
77d939f0b2
commit
ca1d38dffd
@ -3156,6 +3156,10 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
|
||||
// Final fail-over, just list ID field
|
||||
if(!$fields) $fields['ID'] = 'ID';
|
||||
|
||||
// Localize fields (if possible)
|
||||
$labels = $this->fieldLabels(false);
|
||||
$fields = array_intersect_key($labels, $fields);
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user