Skip to content

Commit da8c526

Browse files
author
Till Brehm
committed
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
2 parents 0dfb2d9 + b395d49 commit da8c526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/mail/xmpp_domain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ function onAfterUpdate() {
402402
// $this->desyncMailusers($this->dataRecord['domain']);
403403
// Update DNS Records
404404
// TODO: Update gets only triggered from main form. WHY?
405-
$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'].'.');
405+
$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'].'.');
406406
if ( isset($soa) && !empty($soa) ) $this->update_dns($this->dataRecord, $soa);
407407
}
408408

0 commit comments

Comments
 (0)