From: hickert Date: Thu, 14 Jun 2007 13:46:33 +0000 (+0000) Subject: Updated server service copy & paste X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a8e948a638defc9b023fecb7236cd54eb4fa75bf;p=gosa.git Updated server service copy & paste git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6595 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/systems/class_goMailServer.inc b/plugins/admin/systems/class_goMailServer.inc index 251d2e53b..2d1f08c50 100644 --- a/plugins/admin/systems/class_goMailServer.inc +++ b/plugins/admin/systems/class_goMailServer.inc @@ -685,6 +685,16 @@ class goMailServer extends goService{ } + function PrepareForCopyPaste($source) + { + plugin::PrepareForCopyPaste($source); + + $source_o = new goMailServer($this->config,$source['dn']); + foreach(array("postfixMyNetworks","postfixTransportTable","postfixSenderRestrictions","postfixRecipientRestrictions","postfixMyDestinations") as $attr){ + $this->$attr = $source_o->$attr; + } + } + /* Return plugin informations for acl handling */ function plInfo() diff --git a/plugins/admin/systems/class_goNtpServer.inc b/plugins/admin/systems/class_goNtpServer.inc index bba487bc3..aeb5a4b97 100644 --- a/plugins/admin/systems/class_goNtpServer.inc +++ b/plugins/admin/systems/class_goNtpServer.inc @@ -124,6 +124,22 @@ class goNtpServer extends goService{ )); } + + function PrepareForCopyPaste($source) + { + plugin::PrepareForCopyPaste($source); + + /* Load arrays */ + $tmp = array(); + if (isset($source['goTimeSource'])){ + for ($i= 0; $i<$source['goTimeSource']['count']; $i++){ + $tmp[$source['goTimeSource'][$i]]= $source['goTimeSource'][$i]; + } + } + $this->goTimeSource= $tmp; + + + } function check(){ return array();} diff --git a/plugins/admin/systems/class_servGeneric.inc b/plugins/admin/systems/class_servGeneric.inc index ee00a7a34..24c3f9a9c 100644 --- a/plugins/admin/systems/class_servGeneric.inc +++ b/plugins/admin/systems/class_servGeneric.inc @@ -400,7 +400,7 @@ class servgeneric extends plugin $this->netConfigDNS->macAddress = $source['macAddress'][0]; } if(isset($source['ipHostNumber'][0])){ - $this->netConfigDNS->macAddress = $source['ipHostNumber'][0]; + $this->netConfigDNS->ipHostNumber = $source['ipHostNumber'][0]; } } diff --git a/plugins/admin/systems/class_serverService.inc b/plugins/admin/systems/class_serverService.inc index a4c4921d6..65da3963f 100644 --- a/plugins/admin/systems/class_serverService.inc +++ b/plugins/admin/systems/class_serverService.inc @@ -411,6 +411,16 @@ class ServerService extends plugin } } + + function PrepareForCopyPaste($source) + { + plugin::PrepareForCopyPaste($source); + + foreach($this->plugins as $name => $plugin){ + $this->plugins[$name]->PrepareForCopyPaste($source); + } + } + /* Check if all plugins allow a remove .. */ function allow_remove()