Merged revisions 52309 via svnmerge from

http://svn.silverstripe.com/open/modules/cms/branches/2.2.2

........
  r52309 | aoneil | 2008-04-08 14:43:46 +1200 (Tue, 08 Apr 2008) | 2 lines
  
  fix comment admin not working correctly
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@53498 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-04-26 06:39:10 +00:00
parent 4ab91642b3
commit ff10f2c9f7

View File

@ -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);