Skip to content

Commit

Permalink
Merge pull request #7487 from Bakual/FixSmartSearchPagination
Browse files Browse the repository at this point in the history
Pagination user manager when Search Tools present
  • Loading branch information
Kubik-Rubik committed Nov 4, 2015
2 parents 7abe00f + d667541 commit d8e4926
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion administrator/components/com_users/models/users.php
Expand Up @@ -80,7 +80,7 @@ protected function populateState($ordering = null, $direction = null)
$state = $this->getUserStateFromRequest($this->context . '.filter.state', 'filter_state');
$this->setState('filter.state', $state);

$groupId = $this->getUserStateFromRequest($this->context . '.filter.group', 'filter_group_id', null, 'int');
$groupId = $this->getUserStateFromRequest($this->context . '.filter.group_id', 'filter_group_id', null, 'int');
$this->setState('filter.group_id', $groupId);

$range = $this->getUserStateFromRequest($this->context . '.filter.range', 'filter_range');
Expand Down
2 changes: 1 addition & 1 deletion libraries/legacy/model/list.php
Expand Up @@ -698,7 +698,7 @@ public function getUserStateFromRequest($key, $request, $default = null, $type =
$name = substr($request, 7);
$filters = $app->input->get('filter', array(), 'array');

if (!empty($filters[$name]))
if (isset($filters[$name]) && $filters[$name] !== '')
{
$new_state = $filters[$name];
}
Expand Down

0 comments on commit d8e4926

Please sign in to comment.