Skip to content

Commit a86b05a

Browse files
committed
Update the serial after the actual insert, #6690
1 parent 814781d commit a86b05a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,11 @@ private function dns_rr_add($session_id, $client_id, $params, $update_serial=fal
218218
if(!$this->checkPerm($session_id, 'dns_' . $rr_type . '_add')) {
219219
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
220220
}
221+
$primary_id = $this->insertQuery('../dns/form/dns_' . $rr_type . '.tform.php', $client_id, $params);
221222
if($update_serial) {
222223
$this->increase_serial($session_id, $client_id, $params);
223224
}
224-
return $this->insertQuery('../dns/form/dns_' . $rr_type . '.tform.php', $client_id, $params);
225+
return $primary_id;
225226
}
226227

227228
//* Update a record

0 commit comments

Comments
 (0)