if ($this->items) {
$this->sqlLimit = $this->itemsPerPage;
$this->sqlOffset = ($this->pageNo - 1) * $this->itemsPerPage;
- $this->sqlOrderBy = $this->sortField." ".$this->sortOrder;
$this->readObjects();
}
}
protected function readObjects() {
$this->objectList->sqlLimit = $this->sqlLimit;
$this->objectList->sqlOffset = $this->sqlOffset;
- $this->objectList->sqlOrderBy = $this->sqlOrderBy;
+ if ($this->sqlOrderBy) $this->objectList->sqlOrderBy = $this->sqlOrderBy;
$this->objectList->readObjects();
}
parent::readData();
}
+ /**
+ * @see wcf\page\MultipleLinkPage::readObjects()
+ */
+ protected function readObjects() {
+ $this->sqlOrderBy = $this->sortField." ".$this->sortOrder;
+
+ parent::readObjects();
+ }
+
/**
* Validates the given sort field parameter.
*/