From 9e8ec42e46a03274f1bfe6fa2bda94bbe8d603ff Mon Sep 17 00:00:00 2001 From: Andrew O'Neil Date: Wed, 8 Aug 2007 01:16:02 +0000 Subject: [PATCH] Began interface for comment administration git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39725 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/ComplexTableField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms/ComplexTableField.php b/forms/ComplexTableField.php index f4f29b705..fca82d7f5 100755 --- a/forms/ComplexTableField.php +++ b/forms/ComplexTableField.php @@ -392,7 +392,7 @@ JS; // we can't rely on $idField being populated, and fall back to the request-params. // this is a workaround for a bug where each subsequent popup-call didn't have ID // of the parent set, and so didn't properly save the relation - return ($idField->Value()) ? $idField->Value() : $_REQUEST['ctf']['ID']; + return ($idField->Value()) ? $idField->Value() : (isset($_REQUEST['ctf']['ID']) ? $_REQUEST['ctf']['ID'] : null); }