mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-23 03:19:00 +00:00
Call to undefined method
This commit is contained in:
parent
d7b7915b22
commit
faa490e1c1
@ -151,11 +151,14 @@ class DisplayController extends \JControllerBase
|
||||
// Check if the ordering field is in the white list, otherwise use the incoming value.
|
||||
$value = $this->getApplication()->getUserStateFromRequest($this->context . '.ordercol', 'filter_order', $this->defaultOrderColumn);
|
||||
|
||||
if (method_exists($model, 'getSortFields'))
|
||||
{
|
||||
if (!in_array($value, $model->getSortFields()))
|
||||
{
|
||||
$value = $this->defaultOrderColumn;
|
||||
$this->getApplication()->setUserState($this->context . '.ordercol', $value);
|
||||
}
|
||||
}
|
||||
|
||||
$state->set('list.ordering', $value);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user