diff --git a/code/CommentTableField.php b/code/CommentTableField.php index ecce0fab..e4e4f338 100644 --- a/code/CommentTableField.php +++ b/code/CommentTableField.php @@ -55,7 +55,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); @@ -86,7 +86,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); @@ -117,7 +117,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);