Code

Some changes for incoming handling / printer tab was is_account=true erverytime
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Feb 2006 08:54:49 +0000 (08:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Feb 2006 08:54:49 +0000 (08:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2647 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_printGeneric.inc
plugins/admin/systems/class_systemManagement.inc

index 9fe83499302db8fa79e847d05b3242de7c9958ba..69c065006ad2a54c2ea71be444be2e2e281a44f0 100644 (file)
@@ -166,7 +166,7 @@ class printgeneric extends plugin
      * If there was a new single printer created, it was never saved.
      * -This allows new printers to be saved.
      */
-    if($this->dn == "new"){
+    if(($this->dn == "new")&&(!$this->is_terminal)){
       $this->is_account = true;
     }
   }
index 7471c95d70ddd2d437154ac01cbf249ec43d9e91..59b8ffdc2c4ce7968e7235e28c164c072fff784a 100644 (file)
@@ -916,6 +916,8 @@ class systems extends plugin
         "S" => array("select_server.png",_("Server")),
         "W" => array("select_winstation.png",_("Winstation")),
         "C" => array("select_component.png",_("Network Device")),
+        "NT"=> array("select_new_terminal.png",_("New Terminal")),
+        "NL"=> array("select_new_workstation.png",_("New Workstation")),
         "P" => array("select_printer.png",_("Printer")));
 
    if((isset($input['is_new']))&&(!empty($input['is_new']))){
@@ -1135,7 +1137,11 @@ class systems extends plugin
         $tmp= $value["dn"];
       }
       if (preg_match ("/,ou=incoming,/i", $tmp)){
-        if (in_array('GOhard', $value['objectClass'])){
+         if (in_array('gotoTerminal', $value['objectClass'])){
+          $add= "- "._("New terminal");
+        }elseif (in_array('gotoWorkstation', $value['objectClass'])){
+          $add= "- "._("New workstation");
+        }elseif (in_array('GOhard', $value['objectClass'])){
           $add= "- "._("New Device");
         }
       } else {