mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
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:
parent
9f7aff789c
commit
ce380a87f9
@ -45,7 +45,7 @@ class CommentTableField extends ComplexTableField {
|
|||||||
|
|
||||||
$this->methodName = "spam";
|
$this->methodName = "spam";
|
||||||
|
|
||||||
$childId = Convert::raw2sql($_REQUEST['tf']['childID']);
|
$childId = Convert::raw2sql($_REQUEST['ctf']['childID']);
|
||||||
|
|
||||||
if (is_numeric($childId)) {
|
if (is_numeric($childId)) {
|
||||||
$comment = DataObject::get_by_id($this->sourceClass, $childId);
|
$comment = DataObject::get_by_id($this->sourceClass, $childId);
|
||||||
@ -76,7 +76,7 @@ class CommentTableField extends ComplexTableField {
|
|||||||
|
|
||||||
$this->methodName = "ham";
|
$this->methodName = "ham";
|
||||||
|
|
||||||
$childId = Convert::raw2sql($_REQUEST['tf']['childID']);
|
$childId = Convert::raw2sql($_REQUEST['ctf']['childID']);
|
||||||
|
|
||||||
if (is_numeric($childId)) {
|
if (is_numeric($childId)) {
|
||||||
$comment = DataObject::get_by_id($this->sourceClass, $childId);
|
$comment = DataObject::get_by_id($this->sourceClass, $childId);
|
||||||
@ -107,7 +107,7 @@ class CommentTableField extends ComplexTableField {
|
|||||||
|
|
||||||
$this->methodName = "accept";
|
$this->methodName = "accept";
|
||||||
|
|
||||||
$childId = Convert::raw2sql($_REQUEST['tf']['childID']);
|
$childId = Convert::raw2sql($_REQUEST['ctf']['childID']);
|
||||||
|
|
||||||
if(is_numeric($childId)) {
|
if(is_numeric($childId)) {
|
||||||
$childObject = DataObject::get_by_id($this->sourceClass, $childId);
|
$childObject = DataObject::get_by_id($this->sourceClass, $childId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user