From 9ba37d0ddd9297f3eded1e12d899e939d9f15555 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 15 Nov 2006 11:03:14 +0000 Subject: [PATCH] Fixed Ogroup Copy & Paste for workstation startup git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5123 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/ogroups/class_termgroup.inc | 1 + plugins/admin/ogroups/tabs_ogroups.inc | 11 +++++++++++ plugins/admin/systems/class_workstationStartup.inc | 3 +++ 3 files changed, 15 insertions(+) diff --git a/plugins/admin/ogroups/class_termgroup.inc b/plugins/admin/ogroups/class_termgroup.inc index eb0db5799..c54ac36c3 100644 --- a/plugins/admin/ogroups/class_termgroup.inc +++ b/plugins/admin/ogroups/class_termgroup.inc @@ -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) { diff --git a/plugins/admin/ogroups/tabs_ogroups.inc b/plugins/admin/ogroups/tabs_ogroups.inc index b1a1d1ffe..89bcd1b9e 100644 --- a/plugins/admin/ogroups/tabs_ogroups.inc +++ b/plugins/admin/ogroups/tabs_ogroups.inc @@ -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: diff --git a/plugins/admin/systems/class_workstationStartup.inc b/plugins/admin/systems/class_workstationStartup.inc index 3d4d1300d..c993c65a7 100644 --- a/plugins/admin/systems/class_workstationStartup.inc +++ b/plugins/admin/systems/class_workstationStartup.inc @@ -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 -- 2.30.2