Code

Fixed Ogroup Copy & Paste for workstation startup
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Nov 2006 11:03:14 +0000 (11:03 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 15 Nov 2006 11:03:14 +0000 (11:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5123 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/ogroups/class_termgroup.inc
plugins/admin/ogroups/tabs_ogroups.inc
plugins/admin/systems/class_workstationStartup.inc

index eb0db5799733d951059a01721163ba1c3e258283..c54ac36c3778a9fc6b7ba9d34589aeac5577a30d 100644 (file)
@@ -27,6 +27,7 @@ class termgroup extends plugin
                             "memcheck"        => "memcheck",
                             "sysinfo"         => "sysinfo");
 
+  var $CopyPasteVars = array("gotoNtpServers","modes","inheritTimeServer");
 
   function termgroup ($config, $dn= NULL, $parent= NULL)
   {
index b1a1d1ffee5871150610447df08e729057edd78d..89bcd1b9eb307c9129c866c4f800d64d3e79d47f 100644 (file)
@@ -181,6 +181,7 @@ class ogrouptabs extends tabs
           break;
       }
     }
+    $this->reload($this->by_object['ogroup']->gosaGroupObjects);
   }
 
 
@@ -246,6 +247,16 @@ class ogrouptabs extends tabs
     $baseobject->handle_object_tagging();
   }
 
+  function saveCopyDialog()
+  {
+    tabs::saveCopyDialog();
+    $baseobject= $this->by_object['ogroup'];
+    $cn = $baseobject->cn;
+    foreach($this->by_object as  $name => $obj){
+      $this->by_object[$name]->cn = $cn;
+    }
+  }
+
 }
 
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
index 3d4d1300dbe8a2c6d3fff8f8c13efbf8f4539f2d..c993c65a736bd1b3231bf71fe1ca325d21858998 100644 (file)
@@ -24,6 +24,9 @@ class workstartup extends plugin
   var $attributes     = array("gotoLdapServer", "gotoBootKernel", "gotoKernelParameters", "FAIclass", "FAIstatus", "gotoShare","FAIdebianMirror", "FAIrelease");
   var $objectclasses  = array("GOhard", "FAIobject");
 
+  /* These vars are required to copy object groups !. */
+  var $CopyPasteVars  = array("gotoModules","gotoShares","customParameters","FAIclass","FAIrelease","FAIdebianMirror"); 
+
   /* Share */
   var $gotoShares         = array();// Currently Share Option
   var $gotoShare          = "";     // currently selected Share Option