diff --git a/src/components/com_tjucm/site/models/items.php b/src/components/com_tjucm/site/models/items.php index 19743a33..65ea3349 100644 --- a/src/components/com_tjucm/site/models/items.php +++ b/src/components/com_tjucm/site/models/items.php @@ -151,14 +151,14 @@ protected function populateState($ordering = "a.id", $direction = "DESC") $this->setState("created_by", $createdBy); - if ($this->getUserStateFromRequest($this->context . '.filter.order', 'filter_order', '', 'string')) + if ($this->getUserStateFromRequest($this->context . $ucmType . '.filter.order', 'filter_order', '', 'string')) { - $ordering = $this->getUserStateFromRequest($this->context . '.filter.order', 'filter_order', '', 'string'); + $ordering = $this->getUserStateFromRequest($this->context . $ucmType . '.filter.order', 'filter_order', '', 'string'); } - if ($this->getUserStateFromRequest($this->context . '.filter.order_Dir', 'filter_order_Dir', '', 'string')) + if ($this->getUserStateFromRequest($this->context . $ucmType . '.filter.order_Dir', 'filter_order_Dir', '', 'string')) { - $direction = $this->getUserStateFromRequest($this->context . '.filter.order_Dir', 'filter_order_Dir', '', 'string'); + $direction = $this->getUserStateFromRequest($this->context . $ucmType . '.filter.order_Dir', 'filter_order_Dir', '', 'string'); } // List state information.