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
public function getSort()
{
if ($this->_sort === null) {
$this->_sort = new Sort;
if ($this->id !== null) {
$this->_sort->pageVar = $this->id . '-sort';
}
$this->setSort(array());
}
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