BUGFIX: SSF-30 adding check for null record in the GridFieldPopupForms request handler

This commit is contained in:
Julian Seidenberg 2012-03-07 16:40:59 +13:00
parent 550cb7df9c
commit 676bcbe8c0

View File

@ -216,6 +216,8 @@ class GridFieldPopupForm_ItemRequest extends RequestHandler {
* @return Form
*/
function ItemEditForm() {
if (empty($this->record)) return null;
$form = new Form(
$this,
'ItemEditForm',