mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
2012-12-20 Sergio Martin <sergio.martin@artica.es>
* include/functions_groups.php: Added missed translation of All group name * operation/events/events_list.php: Added compatibility on groups filter in events for metaconsole. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7316 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
07a2889d7a
commit
54dd8cbc00
@ -1,3 +1,11 @@
|
|||||||
|
2012-12-20 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
|
* include/functions_groups.php: Added missed translation of
|
||||||
|
All group name
|
||||||
|
|
||||||
|
* operation/events/events_list.php: Added compatibility on groups
|
||||||
|
filter in events for metaconsole.
|
||||||
|
|
||||||
2012-12-19 Ramon Novoa <rnovoa@artica.es>
|
2012-12-19 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* godmode/agentes/module_manager_editor_common.php,
|
* godmode/agentes/module_manager_editor_common.php,
|
||||||
|
@ -555,7 +555,7 @@ function groups_get_name ($id_group, $returnAllGroup = false) {
|
|||||||
if ($id_group > 0)
|
if ($id_group > 0)
|
||||||
return (string) db_get_value ('nombre', 'tgrupo', 'id_grupo', (int) $id_group);
|
return (string) db_get_value ('nombre', 'tgrupo', 'id_grupo', (int) $id_group);
|
||||||
elseif($returnAllGroup)
|
elseif($returnAllGroup)
|
||||||
return "All";
|
return __("All");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -151,8 +151,15 @@ $groups = users_get_groups($config['id_user'], 'IR');
|
|||||||
|
|
||||||
//Group selection
|
//Group selection
|
||||||
if ($ev_group > 0 && in_array ($ev_group, array_keys ($groups))) {
|
if ($ev_group > 0 && in_array ($ev_group, array_keys ($groups))) {
|
||||||
|
if($meta) {
|
||||||
|
// In metaconsole the group search is performed by name
|
||||||
|
$group_name = groups_get_name ($ev_group);
|
||||||
|
$sql_post = " AND group_name = '$group_name'";
|
||||||
|
}
|
||||||
|
else {
|
||||||
//If a group is selected and it's in the groups allowed
|
//If a group is selected and it's in the groups allowed
|
||||||
$sql_post = " AND id_grupo = $ev_group";
|
$sql_post = " AND id_grupo = $ev_group";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (is_user_admin ($config["id_user"])) {
|
if (is_user_admin ($config["id_user"])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user