Code

Updated winstations
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Oct 2008 08:21:47 +0000 (08:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Oct 2008 08:21:47 +0000 (08:21 +0000)
-Fixed ignore_account flag, wasn't working in combination with additional tabs.
Updated Opsi
-Fixed remove_from_parent.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12646 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/opsi/admin/opsi/class_opsigeneric.inc
gosa-plugins/samba/admin/systems/samba/tabs_winstation.inc

index 2e8f884724b6eac13050f3de054cfb45b7068e43..b9ab712b05253c86658c1878fe11ad0c251ce066 100644 (file)
@@ -103,6 +103,7 @@ class opsiGeneric extends plugin
       foreach($list as $entry){
         if(preg_match("/^".normalizePreg($this->hostId)."$/i",$entry['NAME'][0]['VALUE'])){
           $this->initially_was_account = TRUE; 
+          $this->is_account = TRUE;
           foreach(array(
                 "is_installed" => "LASTSEEN",
                 "description"  => "DESCRIPTION",
@@ -178,8 +179,7 @@ class opsiGeneric extends plugin
       
     }else{
 
-      /* Remember initial settings */ 
-      $this->is_account = TRUE;
+      /* Remember initial settings */
       $this->a_initial_selectedLocalProducts = $this->a_selectedLocalProducts;
       $this->s_initial_selectedNetbootProduct = $this->s_selectedNetbootProduct;
       $this->a_initial_availableNetbootProducts = $this->a_availableNetbootProducts;
index d6089135f6d00c17abaa4cec468ff27d5ddd6232..a1dc10ed887ef1ec0b0a6891299ace97fa90a1c6 100644 (file)
@@ -36,7 +36,7 @@ class wintabs extends tabs
       $this->by_object[$key]->dn= $this->dn;
     }
 
-    tabs::save(TRUE);
+    tabs::save();
   }
 
 }