Skip to content

Commit

Permalink
Made the filter order consistent with the list
Browse files Browse the repository at this point in the history
  • Loading branch information
roland-d committed Apr 30, 2016
1 parent 060fd4e commit a281954
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
18 changes: 9 additions & 9 deletions administrator/components/com_users/models/forms/filter_users.xml
Expand Up @@ -35,6 +35,15 @@
>
<option value="">COM_USERS_FILTER_USERGROUP</option>
</field>
<field
name="lastvisitrange"
type="lastvisitdaterange"
label="COM_USERS_OPTION_FILTER_LAST_VISIT_DATE"
description="COM_USERS_OPTION_FILTER_LAST_VISIT_DATE"
onchange="this.form.submit();"
>
<option value="">COM_USERS_OPTION_FILTER_LAST_VISIT_DATE</option>
</field>
<field
name="range"
type="registrationdaterange"
Expand All @@ -44,15 +53,6 @@
>
<option value="">COM_USERS_OPTION_FILTER_DATE</option>
</field>
<field
name="lastvisitrange"
type="lastvisitdaterange"
label="COM_USERS_OPTION_FILTER_LAST_VISIT_DATE"
description="COM_USERS_OPTION_FILTER_LAST_VISIT_DATE"
onchange="this.form.submit();"
>
<option value="">COM_USERS_OPTION_FILTER_LAST_VISIT_DATE</option>
</field>
</fields>
<fields name="list">
<field
Expand Down
4 changes: 3 additions & 1 deletion administrator/components/com_users/models/users.php
Expand Up @@ -79,7 +79,9 @@ protected function populateState($ordering = 'a.name', $direction = 'asc')
$this->setState('filter.state', $this->getUserStateFromRequest($this->context . '.filter.state', 'filter_state', '', 'cmd'));
$this->setState('filter.group_id', $this->getUserStateFromRequest($this->context . '.filter.group_id', 'filter_group_id', null, 'int'));
$this->setState('filter.range', $this->getUserStateFromRequest($this->context . '.filter.range', 'filter_range', '', 'cmd'));
$this->setState('filter.lastvisitrange', $this->getUserStateFromRequest($this->context . '.filter.lastvisitrange', 'filter_lastvisitrange', '', 'cmd'));
$this->setState(
'filter.lastvisitrange', $this->getUserStateFromRequest($this->context . '.filter.lastvisitrange', 'filter_lastvisitrange', '', 'cmd')
);

$groups = json_decode(base64_decode($app->input->get('groups', '', 'BASE64')));

Expand Down

0 comments on commit a281954

Please sign in to comment.