From 7cc3efa8985470a846b3ad75b0b45c8d962193e6 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 9 Feb 2010 05:29:52 +0000 Subject: [PATCH] BUGFIX: Removed obsolete start argument from ComplexTableField_Item constructor. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98536 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/ComplexTableField.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/forms/ComplexTableField.php b/forms/ComplexTableField.php index 95ce07048..aab7fe88b 100755 --- a/forms/ComplexTableField.php +++ b/forms/ComplexTableField.php @@ -288,7 +288,7 @@ JS; $output = new DataObjectSet(); foreach($this->sourceItems as $pageIndex=>$item) { - $output->push(Object::create($this->itemClass,$item, $this, $pageStart+$pageIndex)); + $output->push(Object::create($this->itemClass,$item, $this)); } return $output; } @@ -996,17 +996,6 @@ class ComplexTableField_ItemRequest extends RequestHandler { * @subpackage fields-relational */ class ComplexTableField_Item extends TableListField_Item { - /** - * Needed to transfer pagination-status from overview. - */ - protected $start; - - function __construct(DataObject $item, ComplexTableField $parent, $start) { - $this->start = $start; - - parent::__construct($item, $parent); - } - function Link($action = null) { return Controller::join_links($this->parent->Link(), '/item/', $this->item->ID, $action); }