This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, 6.1 has been updated
via 675d5ffd973cae5464322a58266b24bc8f46b47c (commit)
from 43b76aec47176eb379f5115d3aac2e4240ad8b3f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=675d5ffd973cae5464322a58266b24bc8f46b47c
commit 675d5ffd973cae5464322a58266b24bc8f46b47c
Author: Franck Villaume <[email protected]>
Date: Wed Nov 29 08:36:24 2017 +0000
admin user list: fix filtering. do not reset the filtering on reordering
diff --git a/src/www/admin/userlist.php b/src/www/admin/userlist.php
index 0563ed5..0be0eb4 100644
--- a/src/www/admin/userlist.php
+++ b/src/www/admin/userlist.php
@@ -203,16 +203,17 @@ if ($usingplugin) {
show_users_list(util_result_column_to_array($res, 0), '', 'realname',
$start, $max, $paging, $totalUsers);
} elseif (!$group_id) {
+ $filter='';
$user_name_search = getStringFromRequest('user_name_search');
$sort_order = getStringFromRequest('sortorder', 'realname');
- util_ensure_value_in_set($sort_order,
-
array('realname','user_name','lastname','firstname','user_id','status','add_date'));
+ util_ensure_value_in_set($sort_order,
array('realname','user_name','lastname','firstname','user_id','status','add_date'));
if ($user_name_search) {
$res = db_query_params('SELECT user_id FROM users WHERE
lower(user_name) LIKE $1 OR lower(lastname) LIKE $1 and users.user_id != 100
ORDER BY '.$sort_order.' LIMIT $2 OFFSET $3',
array(strtolower("$user_name_search%"),
$paging, $start));
$list_id = util_result_column_to_array($res, 0);
$msg = sprintf(_('User list beginning with ā%sā for all
projects'), $user_name_search);
+ $filter .= '&user_name_search='.$user_name_search;
} else {
$msg = _('User list for all projects');
}
@@ -228,14 +229,13 @@ if ($usingplugin) {
$list_id = util_result_column_to_array($res, 0);
}
}
- if (! isset($list_id)) {
+ if (!isset($list_id)) {
$res = db_query_params('SELECT user_id FROM users where
users.user_id != 100 ORDER BY '.$sort_order.' LIMIT $1 OFFSET $2',
array($paging, $start));
$list_id = util_result_column_to_array($res, 0);
}
- $filter='';
- if (in_array($status,array('D','A','S','P'))) {
- $filter = '&status='.$status;
+ if (in_array($status, array('D', 'A', 'S', 'P'))) {
+ $filter .= '&status='.$status;
}
$totalUsers = FusionForge::getInstance()->getNumberOfUsers($status);
$max = ($totalUsers > ($start + $paging)) ? ($start + $paging) :
$totalUsers;
-----------------------------------------------------------------------
Summary of changes:
src/www/admin/userlist.php | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits