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