From 676bcbe8c01423970f0c0d0bd0857765acf96b77 Mon Sep 17 00:00:00 2001 From: Julian Seidenberg Date: Wed, 7 Mar 2012 16:40:59 +1300 Subject: [PATCH] BUGFIX: SSF-30 adding check for null record in the GridFieldPopupForms request handler --- forms/gridfield/GridFieldPopupForms.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/forms/gridfield/GridFieldPopupForms.php b/forms/gridfield/GridFieldPopupForms.php index b4c3f9372..70dd8c6fd 100755 --- a/forms/gridfield/GridFieldPopupForms.php +++ b/forms/gridfield/GridFieldPopupForms.php @@ -216,6 +216,8 @@ class GridFieldPopupForm_ItemRequest extends RequestHandler { * @return Form */ function ItemEditForm() { + if (empty($this->record)) return null; + $form = new Form( $this, 'ItemEditForm',