Skip to content

Commit 19055e6

Browse files
author
Till Brehm
committed
Merge branch '6635-import-zone' into 'develop'
Domains module expects an ID not a string, fixes #6635 Closes #6635 See merge request ispconfig/ispconfig3!1844
2 parents cdd7718 + 7f6a7e8 commit 19055e6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

interface/web/dns/dns_import.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,23 +190,25 @@
190190
/* We have domains in the list, so create the drop-down-list */
191191
foreach( $domains as $domain) {
192192
$domain_select .= "<option value=" . $domain['domain_id'] ;
193-
if ($domain['domain'] == $_POST['domain']) {
193+
if ($domain['domain_id'] == $_POST['domain']) {
194194
$domain_select .= " selected";
195+
$selected_domain = $domain['domain'];
195196
}
196197
$domain_select .= ">" . $app->functions->idn_decode($domain['domain']) . ".</option>\r\n";
197198
}
198199
}
199200
$app->tpl->setVar("domain_option", $domain_select);
200201
/* check if the selected domain can be used! */
201-
if ($domain) {
202-
$domain_check = $app->tools_sites->checkDomainModuleDomain($domain);
202+
if ($selected_domain) {
203+
$domain_check = $app->tools_sites->checkDomainModuleDomain($selected_domain);
203204
if(!$domain_check) {
204205
// invalid domain selected
205206
$domain = NULL;
206207
} else {
207208
$domain = $domain_check;
208209
}
209210
}
211+
$domain = $selected_domain;
210212
}
211213

212214
$lng_file = 'lib/lang/'.$app->functions->check_language($_SESSION['s']['language']).'_dns_import.lng';

0 commit comments

Comments
 (0)