Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG Localize DataObject->summaryFields()

  • Loading branch information...
commit ca1d38dffdb7e9657aafaf070c2d8de2c88f8208 1 parent 77d939f
@chillu chillu authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 model/DataObject.php
4 model/DataObject.php
@@ -3156,6 +3156,10 @@ public function summaryFields(){
// 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;

1 comment on commit ca1d38d


I have found that this Localization causes problems with using DataObjects in modeladmin (unless this has been fixed in later commits?)

If the summary fields uses an object method as one of the columns on the modeladmin grid field all the fields break see for screenshot.

Please sign in to comment.
Something went wrong with that request. Please try again.