2013-02-28 Miguel de Dios <miguel.dedios@artica.es>

* operation/netflow/nf_live_view.php: fixed load filter from the
	group all.
	
	Fixes: #3606272




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7758 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2013-02-28 16:46:34 +00:00
parent e444a690b8
commit 4f790a4e44
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2013-02-28 Miguel de Dios <miguel.dedios@artica.es>
* operation/netflow/nf_live_view.php: fixed load filter from the
group all.
Fixes: #3606272
2013-02-28 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_events.php,

View File

@ -273,13 +273,20 @@ echo '<form method="post" action="' . $config['homeurl'] . 'index.php?sec=netf&s
"</td>";
}
echo "<td>" . '<b>'.__('Load filter').'</b>' . "</td>";
$user_groups = users_get_groups ($config['id_user'], "AR", $own_info['is_admin'], true);
$sql = "SELECT * FROM tnetflow_filter WHERE id_group IN (".implode(',', array_keys ($user_groups)).")";
$user_groups[0] = 0; //Add all groups.
$sql = "SELECT *
FROM tnetflow_filter
WHERE id_group IN (".implode(',', array_keys ($user_groups)).")";
echo "<td colspan='3'>" . html_print_select_from_sql ($sql, 'filter_id', $filter_id, '', __('none'), 0, true) . "</td>";
echo "</tr>";
echo "<tr class='filter_normal'>";
if ($netflow_disable_custom_lvfilters) {