tbrehm
2009-08-11 721fb2a75314cce1ea893cc2dc4e680dee28d5c0
Fixed: FS#828 - DNS Zones created by resellers from template/Wizard not linked to the client 
1 files modified
9 ■■■■■ changed files
interface/web/dns/dns_wizard.php 9 ●●●●● patch | view | raw | blame | history
interface/web/dns/dns_wizard.php
@@ -137,6 +137,15 @@
    if(isset($_POST['ns2']) && $_POST['ns2'] == '') $error .= $app->lng('error_ns2_empty').'<br />';
    if(isset($_POST['email']) && $_POST['email'] == '') $error .= $app->lng('error_email_empty').'<br />';
    
    // make sure that the record belongs to the clinet group and not the admin group when a dmin inserts it
    if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($_POST['client_group_id'])) {
        $sys_groupid = intval($_POST['client_group_id']);
    } elseif($app->auth->has_clients($_SESSION['s']['user']['userid']) && isset($_POST['client_group_id'])) {
        $sys_groupid = intval($_POST['client_group_id']);
    } else {
        $sys_groupid = $_SESSION["s"]["user"]["default_group"];
    }
    $tform_def_file = "form/dns_soa.tform.php";
    $app->uses('tform');
    $app->tform->loadFormDef($tform_def_file);