mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Removed obsolete start argument from ComplexTableField_Item constructor. (from r98536)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102764 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ef36220d9f
commit
68ae667748
@ -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,16 +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 = 0) {
|
||||
$this->start = $start;
|
||||
|
||||
parent::__construct($item, $parent);
|
||||
}
|
||||
|
||||
function Link($action = null) {
|
||||
return Controller::join_links($this->parent->Link(), '/item/', $this->item->ID, $action);
|
||||
|
Loading…
x
Reference in New Issue
Block a user