From d4d985e00f1f70dd390bd5aaf40062416d73f4e7 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Mon, 17 Nov 2008 12:02:44 -0500 Subject: [PATCH] Data records are now assigned to the correct client group if they were created by the administrator. --- interface/web/dns/dns_ptr_edit.php | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/interface/web/dns/dns_ptr_edit.php b/interface/web/dns/dns_ptr_edit.php index 3828aa0..5611f44 100644 --- a/interface/web/dns/dns_ptr_edit.php +++ b/interface/web/dns/dns_ptr_edit.php @@ -110,6 +110,10 @@ $soa_id = intval($_POST["zone"]); $serial = time(); $app->db->query("UPDATE dns_soa SET serial = $serial WHERE id = $soa_id"); + + // Set the sys_groupid of the rr record to be the same then the sys_groupid of the soa record + $soa = $app->db->queryOneRecord("SELECT sys_groupid FROM dns_soa WHERE id = '".intval($this->dataRecord["zone"])."' AND ".$app->tform->getAuthSQL('r')); + $app->db->query("UPDATE dns_rr SET sys_groupid = ".$soa['sys_groupid']." WHERE id = ".$this->id); } function onAfterUpdate() { -- Gitblit v1.9.1