From a73e3fd1d3220317e604a01c78bb762722208b11 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Mon, 26 May 2014 14:15:55 +0200 Subject: [PATCH] Send soa_edit_api so we don't need to worry about serials anymore. Also, add it as a default to the dist config --- includes/config.inc.php-dist | 1 + zones.php | 1 + 2 files changed, 2 insertions(+) diff --git a/includes/config.inc.php-dist b/includes/config.inc.php-dist index f61ab6b..18d53a7 100644 --- a/includes/config.inc.php-dist +++ b/includes/config.inc.php-dist @@ -23,6 +23,7 @@ $templates[] = array( ); */ +$defaults['soa_edit_api'] = 'INCEPTION-INCREMENT'; $defaults['defaulttype'] = 'Master'; # Choose between 'Native' or 'Master' $defaults['primaryns'] = 'unconfigured.primaryns'; # The value of the first NS-record $defaults['secondaryns'] = 'unconfigured.secondaryns'; # The value of the second NS-record diff --git a/zones.php b/zones.php index 7458962..c05fc2a 100644 --- a/zones.php +++ b/zones.php @@ -177,6 +177,7 @@ if ($action == "list" or $action== "listslaves") { } else { _jtable_respond(null, 'error', "Not enough data: ".print_r($_POST, 1)); } + $vars['soa_edit_api'] = $defaults['SOA-EDIT']; } $vars['name'] = $_POST['name']; $vars['kind'] = $_POST['kind'];