Sergio Cambra
2014-07-09 a67681db7914d94f5e1956bd9ffdb9f882f0a2cb
disable onSubmit when dns' records tab is submitted
1 files modified
3 ■■■■ changed files
interface/web/dns/dns_soa_edit.php 3 ●●●● patch | view | raw | blame | history
interface/web/dns/dns_soa_edit.php
@@ -199,6 +199,7 @@
function onSubmit() {
    global $app, $conf;
    if ($app->tform->getCurrentTab() == 'dns_soa') {
    /* check if the domain module is used - and check if the selected domain can be used! */
    $app->uses('ini_parser,getconf');
    $settings = $app->getconf->get_global_config('domains');
@@ -270,7 +271,7 @@
    if($tmp["number"] > 0) {
        $app->error($app->tform->wordbook["origin_error_unique"]);
    }
    }
    parent::onSubmit();
}