Skip to content

Commit

Permalink
FIX: Ensure GridField breadcrumbs use correct casting class (fixed si…
Browse files Browse the repository at this point in the history
  • Loading branch information
kinglozzer committed Mar 8, 2024
1 parent dba8734 commit ea45a4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Forms/GridField/GridFieldDetailForm_ItemRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ea45a4d

Please sign in to comment.