Skip to content

Commit f2381ee

Browse files
committed
Fix #159
1 parent dadda9e commit f2381ee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2003,7 +2003,7 @@ public static function getForm($widgetId, $opt, $criterias, $onsubmit = false)
20032003
$_POST["params"]['sons']
20042004
);
20052005
} else {
2006-
$restrict = $dbu->getEntitiesRestrictCriteria('glpi_entities', '', $opt['entities_id'], $opt['sons']);
2006+
$restrict = $dbu->getEntitiesRestrictCriteria('glpi_entities', '', $_POST["params"]['entities_id'], $_POST["params"]['sons']);
20072007
}
20082008

20092009
$dropdown = ITILCategory::dropdown(

src/Reports/Reports_Bar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2673,6 +2673,7 @@ private static function getTicketsPerTech($params)
26732673

26742674
$selected_group = [];
26752675
if (isset($params["technicians_groups_id"])
2676+
&& is_array($params["technicians_groups_id"])
26762677
&& count($params["technicians_groups_id"]) > 0) {
26772678
$selected_group = $params['technicians_groups_id'];
26782679
} elseif (count($_SESSION['glpigroups']) > 0) {

0 commit comments

Comments
 (0)