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
This commit is contained in:
Sam Minnee 2010-02-09 05:29:52 +00:00
parent ec326f752e
commit 7cc3efa898

View File

@ -288,7 +288,7 @@ JS;
$output = new DataObjectSet(); $output = new DataObjectSet();
foreach($this->sourceItems as $pageIndex=>$item) { 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; return $output;
} }
@ -996,17 +996,6 @@ class ComplexTableField_ItemRequest extends RequestHandler {
* @subpackage fields-relational * @subpackage fields-relational
*/ */
class ComplexTableField_Item extends TableListField_Item { 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) { function Link($action = null) {
return Controller::join_links($this->parent->Link(), '/item/', $this->item->ID, $action); return Controller::join_links($this->parent->Link(), '/item/', $this->item->ID, $action);
} }