Private GIT

Skip to content
Snippets Groups Projects
Commit 3866071e authored by Benoît Sauveton's avatar Benoît Sauveton
Browse files

#4015 memorize default hostgroup selection

parent 00519b58
No related merge requests found
......@@ -64,8 +64,12 @@ if (isset($_POST["template"])) {
if (isset($_POST["hostgroups"])) {
$hostgroups = $_POST["hostgroups"];
$_SESSION['configuration_default_hostgroups'] = $hostgroups;
} else if (isset($_GET["hostgroups"])) {
$hostgroups = $_GET["hostgroups"];
$_SESSION['configuration_default_hostgroups'] = $hostgroups;
} else if(isset($_SESSION['configuration_default_hostgroups'])){
$hostgroups = $_SESSION['configuration_default_hostgroups'];
} else {
$hostgroups = NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment