Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
723dd04b
Commit
723dd04b
authored
May 04, 2009
by
tbrehm
Browse files
Fixed: FS#699 - Bug: Change Client of DNS entry
parent
56f1f4fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/dns/dns_soa_edit.php
View file @
723dd04b
...
...
@@ -175,6 +175,18 @@ class page_action extends tform_actions {
// And we want to update all rr records too, that belong to this record
$app
->
db
->
query
(
"UPDATE dns_rr SET sys_groupid =
$client_group_id
WHERE zone = "
.
$this
->
id
);
}
//** When the client group has changed, change also the owner of the record if the owner is not the admin user
if
(
$this
->
oldDataRecord
[
"client_group_id"
]
!=
$this
->
dataRecord
[
"client_group_id"
]
&&
$this
->
dataRecord
[
"sys_userid"
]
!=
1
)
{
$client_group_id
=
intval
(
$this
->
dataRecord
[
"client_group_id"
]);
$tmp
=
$app
->
db
->
queryOneREcord
(
"SELECT userid FROM sys_user WHERE default_group = "
.
$client_group_id
);
if
(
$tmp
[
"userid"
]
>
0
)
{
$app
->
db
->
query
(
"UPDATE dns_soa SET sys_userid = "
.
$tmp
[
"userid"
]
.
" WHERE id = "
.
$this
->
id
);
$app
->
db
->
query
(
"UPDATE dns_rr SET sys_userid = "
.
$tmp
[
"userid"
]
.
" WHERE zone = "
.
$this
->
id
);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment