summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 97fdb73)
raw | patch | inline | side by side (parent: 97fdb73)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 9 Feb 2006 08:54:49 +0000 (08:54 +0000) | ||
committer | hickert <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 | patch | blob | history | |
plugins/admin/systems/class_systemManagement.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index 9fe83499302db8fa79e847d05b3242de7c9958ba..69c065006ad2a54c2ea71be444be2e2e281a44f0 100644 (file)
* 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;
}
}
diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index 7471c95d70ddd2d437154ac01cbf249ec43d9e91..59b8ffdc2c4ce7968e7235e28c164c072fff784a 100644 (file)
"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']))){
$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 {