From ea45a4d7d903c28ecaea86385336d5f36366628f Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Fri, 8 Mar 2024 16:07:11 +0000 Subject: [PATCH] FIX: Ensure GridField breadcrumbs use correct casting class (fixed #11174) --- src/Forms/GridField/GridFieldDetailForm_ItemRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php b/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php index cebe22e00a4..afa9c9da100 100644 --- a/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php +++ b/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php @@ -890,7 +890,7 @@ public function Breadcrumbs($unlinked = false) } 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([ 'Title' => $title, 'Link' => $this->Link()