mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #3111 from silverstripe-iterators/pulls/gridfield-getrecord
GridFieldDetailForm_ItemRequest->getRecord()
This commit is contained in:
commit
0305eb97e7
@ -193,6 +193,7 @@ class GridFieldDetailForm implements GridField_URLHandler {
|
|||||||
public function getItemEditFormCallback() {
|
public function getItemEditFormCallback() {
|
||||||
return $this->itemEditFormCallback;
|
return $this->itemEditFormCallback;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -627,6 +628,13 @@ class GridFieldDetailForm_ItemRequest extends RequestHandler {
|
|||||||
return $this->gridField;
|
return $this->gridField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return DataObject
|
||||||
|
*/
|
||||||
|
public function getRecord() {
|
||||||
|
return $this->record;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CMS-specific functionality: Passes through navigation breadcrumbs
|
* CMS-specific functionality: Passes through navigation breadcrumbs
|
||||||
* to the template, and includes the currently edited record (if any).
|
* to the template, and includes the currently edited record (if any).
|
||||||
|
Loading…
Reference in New Issue
Block a user