Fixed CommentTableField to work with r73784

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.1@73785 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-03-29 23:22:53 +00:00
parent 9f7aff789c
commit ce380a87f9

View File

@ -45,7 +45,7 @@ class CommentTableField extends ComplexTableField {
$this->methodName = "spam";
$childId = Convert::raw2sql($_REQUEST['tf']['childID']);
$childId = Convert::raw2sql($_REQUEST['ctf']['childID']);
if (is_numeric($childId)) {
$comment = DataObject::get_by_id($this->sourceClass, $childId);
@ -76,7 +76,7 @@ class CommentTableField extends ComplexTableField {
$this->methodName = "ham";
$childId = Convert::raw2sql($_REQUEST['tf']['childID']);
$childId = Convert::raw2sql($_REQUEST['ctf']['childID']);
if (is_numeric($childId)) {
$comment = DataObject::get_by_id($this->sourceClass, $childId);
@ -107,7 +107,7 @@ class CommentTableField extends ComplexTableField {
$this->methodName = "accept";
$childId = Convert::raw2sql($_REQUEST['tf']['childID']);
$childId = Convert::raw2sql($_REQUEST['ctf']['childID']);
if(is_numeric($childId)) {
$childObject = DataObject::get_by_id($this->sourceClass, $childId);