Commit d8f64480 authored by tbrehm's avatar tbrehm

Fixed: FS#1540 - Reassign users (ftp, database, shell) from one client to another client

parent ab138b2f
......@@ -503,6 +503,14 @@ class page_action extends tform_actions {
}
unset($records);
unset($rec);
//* Update all subdomains and alias domains
$records = $app->db->queryAllRecords("SELECT domain_id FROM web_domain WHERE parent_domain_id = ".$this->id);
foreach($records as $rec) {
$app->db->datalogUpdate('web_domain', "sys_userid = '".$web_rec['sys_userid']."', sys_groupid = '".$web_rec['sys_groupid']."'", 'domain_id', $rec['domain_id']);
}
unset($records);
unset($rec);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment