2013-07-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* operation/events/events_list.php: Fix user filter in
        event list view.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2013-07-30 09:40:43 +00:00
parent b70b0951a4
commit 162156576d
2 changed files with 33 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2013-07-30 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* operation/events/events_list.php: Fix user filter in
event list view.
2013-07-30 Sergio Martin <sergio.martin@artica.es>
* godmode/groups/group_list.php: Fix pagination on

View File

@ -387,10 +387,35 @@ $table_advanced->rowclass[] = '';
$data = array();
$data[0] = __('User ack.') . '<br>';
$users = users_get_info ();
if ($users === false)
$users = array();
$user_users = users_get_user_users();
$user_groups = users_get_groups($config['id_user'], "ER", users_can_manage_group_all(0));
$data[0] .= html_print_select($user_users, "id_user_ack", $id_user_ack, '',
$acl_column = get_acl_column("ER");
$users_acl = array();
foreach ($users as $user => $user_desc) {
$query = sprintf("SELECT id_grupo
FROM tusuario_perfil, tperfil
WHERE tperfil.id_perfil = tusuario_perfil.id_perfil AND
tusuario_perfil.id_usuario = '%s' AND
tperfil.%s = 1 AND
(tusuario_perfil.id_grupo IN (%s))
ORDER BY id_grupo", $user, $acl_column, implode(',',array_keys($user_groups)));
$user_group = db_get_all_rows_sql($query);
if ($user_group === false) {
continue;
}
$users_acl[$user] = $user;
}
$data[0] .= html_print_select($users_acl, "id_user_ack", $id_user_ack, '',
__('Any'), 0, true);
$data[1] = '';
$table_advanced->data[] = $data;