Code

Updated copy & paste
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Oct 2009 14:29:36 +0000 (14:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Oct 2009 14:29:36 +0000 (14:29 +0000)
- Copy terminal path and swap server settings  too

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

gosa-plugins/goto/admin/ogroups/goto/class_termgroup.inc

index a2bcc46484d1282c16c97f19da23aab85f13aecc..2d6396060dd72f424ddeb7d445185477986410a4 100644 (file)
@@ -412,6 +412,11 @@ class termgroup extends plugin
     /* Create used ntp server array */
     $this->gotoNtpServer= array();
 
+    $source_o = new termgroup ($this->config, $source['dn']);
+    foreach(array("gotoTerminalPath","gotoSwapServer") as $attr){
+      $this->$attr = $source_o->$attr;
+    }
+
     if(isset($source['gotoNtpServer'])){
       $this->inheritTimeServer = false;
       unset($source['gotoNtpServer']['count']);