FIX: Ensure GridField breadcrumbs use correct casting class (fixed #11174)

This commit is contained in:
Loz Calver 2024-03-08 16:07:11 +00:00
parent dba87348f9
commit ea45a4d7d9

View File

@ -890,7 +890,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler
} }
if ($this->record && $this->record->ID) { if ($this->record && $this->record->ID) {
$title = ($this->record->Title) ? $this->record->Title : "#{$this->record->ID}"; $title = ($this->record->Title) ? $this->record->obj('Title') : "#{$this->record->ID}";
$items->push(ArrayData::create([ $items->push(ArrayData::create([
'Title' => $title, 'Title' => $title,
'Link' => $this->Link() 'Link' => $this->Link()