tbrehm
2012-01-25 355efb9a7f74a2035f595bbd0d03375710d08587
interface/web/sites/web_domain_edit.php
@@ -142,7 +142,6 @@
         $tmp = $app->db->queryOneRecord("SELECT groupid FROM sys_group WHERE client_id = ".$client['client_id']);
         $client_select = '<option value="'.$tmp['groupid'].'">'.$client['contact_name'].'</option>';
         //$tmp_data_record = $app->tform->getDataRecord($this->id);
         print_r($this->dataRecord);
         if(is_array($records)) {
            foreach( $records as $rec) {
               $selected = @(is_array($this->dataRecord) && ($rec["groupid"] == $this->dataRecord['client_group_id'] || $rec["groupid"] == $this->dataRecord['sys_groupid']))?'SELECTED':'';
@@ -538,7 +537,7 @@
   function onAfterUpdate() {
      global $app, $conf;
      // make sure that the record belongs to the clinet group and not the admin group when a admin inserts it
      // make sure that the record belongs to the client group and not the admin group when a admin inserts it
      // also make sure that the user can not delete domain created by a admin
      if($_SESSION["s"]["user"]["typ"] == 'admin' && isset($this->dataRecord["client_group_id"])) {
         $client_group_id = intval($this->dataRecord["client_group_id"]);