Till Brehm
2016-06-14 da8c5263302809434d43c9f385f8bac57b49d851
Merge branch 'fix-issue-3943' into 'stable-3.1'

SQL Fix for xmpp edit domain

This is from and Closes #3943

I am not the one who found this fix! Credits go to @linus9000

See merge request !353
1 files modified
2 ■■■ changed files
interface/web/mail/xmpp_domain_edit.php 2 ●●● patch | view | raw | blame | history
interface/web/mail/xmpp_domain_edit.php
@@ -402,7 +402,7 @@
        //    $this->desyncMailusers($this->dataRecord['domain']);
        // Update DNS Records
        // TODO: Update gets only triggered from main form. WHY?
        $soa = $app->db->queryOneRecord("SELECT id AS zone, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other FROM dns_soa WHERE active = 'Y' AND  = ?", $this->dataRecord['domain'].'.');
        $soa = $app->db->queryOneRecord("SELECT id AS zone, sys_userid, sys_groupid, sys_perm_user, sys_perm_group, sys_perm_other FROM dns_soa WHERE active = 'Y' AND origin = ?", $this->dataRecord['domain'].'.');
        if ( isset($soa) && !empty($soa) ) $this->update_dns($this->dataRecord, $soa);
    }