Skip to content

Commit 9856af9

Browse files
author
Till Brehm
committed
Fixes #6504 wrong group ID in dns zone import
1 parent a36506f commit 9856af9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

interface/web/dns/dns_import.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@
5858

5959
// import variables
6060
$template_id = (isset($_POST['template_id']))?$app->functions->intval($_POST['template_id']):0;
61-
$sys_groupid = (isset($_POST['client_group_id']))?$app->functions->intval($_POST['client_group_id']):0;
61+
if (isset($_POST['client_group_id'])) {
62+
$sys_groupid = $app->functions->intval($_POST['client_group_id']);
63+
} else {
64+
$sys_groupid = $_SESSION["s"]["user"]["default_group"];
65+
}
6266
$domain = (isset($_POST['domain'])&&!empty($_POST['domain']))?$_POST['domain']:NULL;
6367

6468
// get the correct server_id

0 commit comments

Comments
 (0)