Commit c23725ac by Carsten Brandt

fix dataProvider getSort()

correct creation of new Sort object if none is there
parent 8beadc91
...@@ -80,10 +80,7 @@ abstract class DataProvider extends Component implements IDataProvider ...@@ -80,10 +80,7 @@ abstract class DataProvider extends Component implements IDataProvider
public function getSort() public function getSort()
{ {
if ($this->_sort === null) { if ($this->_sort === null) {
$this->_sort = new Sort; $this->setSort(array());
if ($this->id !== null) {
$this->_sort->pageVar = $this->id . '-sort';
}
} }
return $this->_sort; return $this->_sort;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment