Skip to content

Commit

Permalink
better filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Feb 27, 2016
1 parent be5af71 commit da0d944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions administrator/components/com_modules/models/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function populateState($ordering = 'a.position', $direction = 'asc')
$this->setState('filter.search', $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search', '', 'string'));
$this->setState('filter.position', $this->getUserStateFromRequest($this->context . '.filter.position', 'filter_position', '', 'string'));
$this->setState('filter.module', $this->getUserStateFromRequest($this->context . '.filter.module', 'filter_module', '', 'string'));
$this->setState('filter.access', $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', '', 'string'));
$this->setState('filter.access', $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', '', 'cmd'));

// If in modal layout on the frontend, state and language are always forced.
if ($app->isSite() && $layout === 'modal')
Expand All @@ -92,7 +92,7 @@ protected function populateState($ordering = 'a.position', $direction = 'asc')
else
{
$this->setState('filter.language', $this->getUserStateFromRequest($this->context . '.filter.language', 'filter_language', '', 'cmd'));
$this->setState('filter.state', $this->getUserStateFromRequest($this->context . '.filter.state', 'filter_state', null, 'int'));
$this->setState('filter.state', $this->getUserStateFromRequest($this->context . '.filter.state', 'filter_state', '', 'cmd'));
}

// Special case for the client id.
Expand Down

0 comments on commit da0d944

Please sign in to comment.