mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: SSF-30 adding check for null record in the GridFieldPopupForms request handler
This commit is contained in:
parent
550cb7df9c
commit
676bcbe8c0
@ -216,6 +216,8 @@ class GridFieldPopupForm_ItemRequest extends RequestHandler {
|
||||
* @return Form
|
||||
*/
|
||||
function ItemEditForm() {
|
||||
if (empty($this->record)) return null;
|
||||
|
||||
$form = new Form(
|
||||
$this,
|
||||
'ItemEditForm',
|
||||
|
Loading…
Reference in New Issue
Block a user