Skip to content

Commit 811a36a

Browse files
author
Till Brehm
committed
Merge branch 'dns_templatezone_add-fix' into 'master'
Fix for Issue #4363 - dns_templatezone_add not working This fixes Issue #4363. 'xfer' column can not be NULL in dns_soa table. Same solution is used in interface/web/dns/dns_wizard.php file. It also returns created dns soa id - without return value SOAPpy would fail with "SAXParseException: <unknown>:1:0: no element found". All other functions I checked do return a value. See merge request !564
2 parents 1ae20c3 + 83a76f2 commit 811a36a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interface/lib/classes/remote.d/dns.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function dns_templatezone_add($session_id, $client_id, $template_id, $dom
7171
$tpl_rows = explode("\n", $tpl_content);
7272
$section = '';
7373
$vars = array();
74+
$vars['xfer']='';
7475
$dns_rr = array();
7576
foreach($tpl_rows as $row) {
7677
$row = trim($row);
@@ -176,6 +177,7 @@ public function dns_templatezone_add($session_id, $client_id, $template_id, $dom
176177
$dns_rr_id = $app->db->datalogInsert('dns_rr', $insert_data, 'id');
177178
}
178179
}
180+
return $dns_soa_id;
179181
exit;
180182
} else {
181183
throw new SoapFault('permission_denied', $error);

0 commit comments

Comments
 (0)