2014-01-17 Juan Manuel Ramon Vigo <juanmanuel.ramon@artica.es>
* godmode/reporting/reporting_builder.php: Fixed group filter in report list view git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9337 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
3a18cecb87
commit
5e3116ac79
|
@ -1,3 +1,8 @@
|
|||
2014-01-17 Juan Manuel Ramon Vigo <juanmanuel.ramon@artica.es>
|
||||
|
||||
* godmode/reporting/reporting_builder.php: Fixed group filter in report
|
||||
list view.
|
||||
|
||||
2014-01-17 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/agentes/agent_manager.php: fixed the PHP warnings and
|
||||
|
|
|
@ -336,6 +336,17 @@ switch ($action) {
|
|||
'order' => 'name'
|
||||
);
|
||||
}
|
||||
|
||||
# Fix : group filter was not working
|
||||
// Show only selected groups
|
||||
if ($id_group > 0) {
|
||||
$group = array("$id_group" => $id_group);
|
||||
$filter['id_group'] = $id_group;
|
||||
}
|
||||
else {
|
||||
$group = false;
|
||||
}
|
||||
|
||||
|
||||
// Filter normal and metaconsole reports
|
||||
if ($config['metaconsole'] == 1 and defined('METACONSOLE'))
|
||||
|
@ -346,6 +357,7 @@ switch ($action) {
|
|||
$reports = reports_get_reports ($filter,
|
||||
array ('name', 'id_report', 'description', 'private',
|
||||
'id_user', 'id_group'), $return_all_group, 'RR', $group);
|
||||
|
||||
$table->width = '0px';
|
||||
if (sizeof ($reports)) {
|
||||
$table->id = 'report_list';
|
||||
|
|
Loading…
Reference in New Issue