Skip to content
Snippets Groups Projects
Verified Commit a86b05a0 authored by Helmo's avatar Helmo
Browse files

Update the serial after the actual insert, #6690

parent 814781dd
No related branches found
No related tags found
1 merge request!1883Update the serial after the actual insert, #6690
......@@ -218,10 +218,11 @@ class remoting_dns extends remoting {
if(!$this->checkPerm($session_id, 'dns_' . $rr_type . '_add')) {
throw new SoapFault('permission_denied', 'You do not have the permissions to access this function.');
}
$primary_id = $this->insertQuery('../dns/form/dns_' . $rr_type . '.tform.php', $client_id, $params);
if($update_serial) {
$this->increase_serial($session_id, $client_id, $params);
}
return $this->insertQuery('../dns/form/dns_' . $rr_type . '.tform.php', $client_id, $params);
return $primary_id;
}
//* Update a record
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment