Till Brehm
2014-04-05 eccd040318ae657b24aeb983e613c1b38cd34e45
interface/web/sites/web_vhost_subdomain_edit.php
@@ -607,6 +607,8 @@
   function onAfterUpdate() {
      global $app, $conf;
      //* Update settings when parent domain gets changed
      if(isset($this->dataRecord["parent_domain_id"]) && $this->dataRecord["parent_domain_id"] != $this->oldDataRecord["parent_domain_id"]) {
      // Get configuration for the web system
      $app->uses("getconf");
      $web_rec = $app->tform->getDataRecord($this->id);
@@ -625,6 +627,7 @@
      $sql = "UPDATE web_domain SET sys_groupid = ".$app->functions->intval($this->parent_domain_record['sys_groupid']).",system_user = '$system_user', system_group = '$system_group', document_root = '$document_root', allow_override = '$htaccess_allow_override', php_open_basedir = '$php_open_basedir'  WHERE domain_id = ".$this->id;
      $app->db->query($sql);
   }
   }
}