From dc9307bd996c4be3e2d12db8d7f1d8e7650856bb Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 10 Oct 2017 16:03:20 +1300 Subject: [PATCH] Add updateBreadcrumbs hook to GridFieldDetailForm --- src/Forms/GridField/GridFieldDetailForm_ItemRequest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php b/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php index 1776a6f53..8affff5d6 100644 --- a/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php +++ b/src/Forms/GridField/GridFieldDetailForm_ItemRequest.php @@ -587,6 +587,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler /** @var ArrayList $items */ $items = $this->popupController->Breadcrumbs($unlinked); + if ($this->record && $this->record->ID) { $title = ($this->record->Title) ? $this->record->Title : "#{$this->record->ID}"; $items->push(new ArrayData(array( @@ -600,6 +601,7 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler ))); } + $this->extend('updateBreadcrumbs', $items); return $items; } }