From e6fb63dcc850e8803dd1dd225df2b1fb5e537880 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 23 Nov 2006 06:49:00 +0000 Subject: [PATCH] Fixed tab handling, some tabs may not be initialized git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5205 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/tabs_workstation.inc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/tabs_workstation.inc b/plugins/admin/systems/tabs_workstation.inc index 138c2d4ed..0fe5667ea 100644 --- a/plugins/admin/systems/tabs_workstation.inc +++ b/plugins/admin/systems/tabs_workstation.inc @@ -38,6 +38,12 @@ class worktabs extends tabs function save_object($save_current= FALSE) { tabs::save_object($save_current); + + /* Assign current cn */ + $baseobject= $this->by_object['workgeneric']; + foreach ($this->by_object as $key => $obj){ + $this->by_object[$key]->cn= $baseobject->cn; + } } @@ -56,8 +62,10 @@ class worktabs extends tabs tabs::save(TRUE); - if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){ - $this->by_object['printgeneric']->remove_from_parent(); + if(isset($this->by_object['printgeneric'])){ + if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){ + $this->by_object['printgeneric']->remove_from_parent(); + } } /* Fix tagging if needed */ -- 2.30.2