Skip to content
Browse files

BUGFIX: SSF-30 adding check for null record in the GridFieldPopupForm…

…s request handler
  • Loading branch information...
1 parent 550cb7d commit 676bcbe8c01423970f0c0d0bd0857765acf96b77 @candidasa candidasa committed Mar 7, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 forms/gridfield/GridFieldPopupForms.php
View
2 forms/gridfield/GridFieldPopupForms.php
@@ -216,6 +216,8 @@ function edit($request) {
* @return Form
*/
function ItemEditForm() {
+ if (empty($this->record)) return null;
+
$form = new Form(
$this,
'ItemEditForm',

0 comments on commit 676bcbe

Please sign in to comment.
Something went wrong with that request. Please try again.