diff --git a/forms/gridfield/GridFieldDetailForm.php b/forms/gridfield/GridFieldDetailForm.php index 432987a01..54cf1a24f 100644 --- a/forms/gridfield/GridFieldDetailForm.php +++ b/forms/gridfield/GridFieldDetailForm.php @@ -193,6 +193,7 @@ class GridFieldDetailForm implements GridField_URLHandler { public function getItemEditFormCallback() { return $this->itemEditFormCallback; } + } /** @@ -627,6 +628,13 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler { return $this->gridField; } + /** + * @return DataObject + */ + public function getRecord() { + return $this->record; + } + /** * CMS-specific functionality: Passes through navigation breadcrumbs * to the template, and includes the currently edited record (if any).