X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fadmin%2Fsystems%2Fclass_goShareServer.inc;h=6b7f39aa382c514633f11ddc96f9bfc75fe96d00;hb=6ae7a3503964fb97587cf21b9c1b4276b9db23fc;hp=d12c5a07b8222160c397e28a7648cf885d4c83e7;hpb=77834e27646c6a9e5ee2d4097d004ab0deb1f430;p=gosa.git diff --git a/plugins/admin/systems/class_goShareServer.inc b/plugins/admin/systems/class_goShareServer.inc index d12c5a07b..6b7f39aa3 100644 --- a/plugins/admin/systems/class_goShareServer.inc +++ b/plugins/admin/systems/class_goShareServer.inc @@ -262,7 +262,7 @@ class goShareServer extends goService{ $ldap->cd($mountsdn); $ldap->add($mounts); show_ldap_error($ldap->get_error(), sprintf(_("Creating system server/shares (mount container) with dn '%s' failed."),$this->dn)); - new log("modify","server/".get_class($this),$mountdn,array_keys($mount),$ldap->get_error()); + new log("modify","server/".get_class($this),$mountsdn,array_keys($mounts),$ldap->get_error()); } # remove deleted mounts from the container @@ -362,6 +362,24 @@ class goShareServer extends goService{ } + function PrepareForCopyPaste($source) + { + plugin::PrepareForCopyPaste($source); + + $tmp =array(); + if(isset($source['goExportEntry'])){ + if(isset($source['goExportEntry']['count'])){ + for($i= 0; $i<$source['goExportEntry']['count']; $i++){ + $entry= $source['goExportEntry'][$i]; + $tmp[preg_replace('/\|.*$/', '', $entry)]= $entry; + } + } + } + $this->goExportEntryList = $tmp; + $this->goExportEntry = $tmp; + } + + /* Return plugin informations for acl handling */ function plInfo() {