summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5eaf5d0)
raw | patch | inline | side by side (parent: 5eaf5d0)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Apr 2006 12:42:20 +0000 (12:42 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 20 Apr 2006 12:42:20 +0000 (12:42 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3073 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_printGeneric.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_printGeneric.inc b/plugins/admin/systems/class_printGeneric.inc
index d70986981b0fc67c1f4c45b186b419cf6b231b76..6d9eda89da9cf0f1eca1e08fa69e4599d6379210 100644 (file)
/* Detect type of printer via parent tabs.
*/
- if(isset($this->parent->by_name['workgeneric'])){
+ if(isset($this->parent->by_object['workgeneric'])){
/* Exclude templates
*/
- $this->cn = $this->parent->by_name['workgeneric']->cn;
+ $this->cn = $this->parent->by_object['workgeneric']->cn;
if($this->parent->by_object['workgeneric']->cn == "wdefault"){
$this->BelongsTo = "WorkstationTemplate";
}else{
$this->BelongsTo = "Workstation";
}
- }elseif(isset($this->parent->by_name['termgeneric'])){
+ }elseif(isset($this->parent->by_object['termgeneric'])){
/* Exclude templates
*/
- $this->cn = $this->parent->by_name['termgeneric']->cn;
+ $this->cn = $this->parent->by_object['termgeneric']->cn;
if($this->parent->by_object['termgeneric']->cn == "default"){
$this->BelongsTo = "TerminalTemplate";
}else{
$this->BelongsTo = "Terminal";
}
- }elseif(isset($this->parent->by_name['printgeneric'])){
+ }elseif(isset($this->parent->by_object['printgeneric'])){
$this->BelongsTo = "Printer";
}
$message= array_merge($message, $this->netConfigDNS->check());
/* Don't display check messages if this is a template object */
- if(isset($this->parent->by_name['workgeneric'])){
+ if(isset($this->parent->by_object['workgeneric'])){
if($this->parent->by_object['workgeneric']->cn == "wdefault"){
return $message;
}
- }elseif(isset($this->parent->by_name['termgeneric'])){
+ }elseif(isset($this->parent->by_object['termgeneric'])){
if($this->parent->by_object['termgeneric']->cn == "default"){
return $message;
}
}
if(!$this->is_account) return;
- if(isset($this->parent->by_name['workgeneric'])){
+ if(isset($this->parent->by_object['workgeneric'])){
if($this->parent->by_object['workgeneric']->cn == "wdefault"){
return;
}
- }elseif(isset($this->parent->by_name['termgeneric'])){
+ }elseif(isset($this->parent->by_object['termgeneric'])){
if($this->parent->by_object['termgeneric']->cn == "default"){
return;
}