Began interface for comment administration

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@39725 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2007-08-08 01:16:02 +00:00
parent a62c0bc093
commit 9e8ec42e46

View File

@ -392,7 +392,7 @@ JS;
// we can't rely on $idField being populated, and fall back to the request-params. // 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 // 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 // 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);
} }