Skip to content

Commit 293840e

Browse files
committed
Quick&Dirty fix following change Core side
Since glpi-project/glpi#21622 Visibility is less restrictive depending on session interface that was previously not used on that part
1 parent c52dd3d commit 293840e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

inc/deploygroup.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,10 +640,13 @@ public static function getTargetsForGroup($groups_id, $use_cache = false)
640640
$results[$tmpgroup['items_id']] = $tmpgroup['items_id'];
641641
}
642642
} else {
643+
$bkp_interface = $_SESSION['glpiactiveprofile']['interface'];
644+
$_SESSION['glpiactiveprofile']['interface'] = 'central';
643645
$results = PluginGlpiinventoryDeployGroup_Dynamicdata::getTargetsByGroup(
644646
$group,
645647
$use_cache
646648
);
649+
$_SESSION['glpiactiveprofile']['interface'] = $bkp_interface;
647650
}
648651
return $results;
649652
}

0 commit comments

Comments
 (0)