From 23b80ecf3a8e03bc634d5840d06d4b301803fa71 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 7 Apr 2010 09:38:33 +0000 Subject: [PATCH] Updated trustModes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17507 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../trustModeDialog/class_trustModeDialog.inc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gosa-core/plugins/personal/posix/trustModeDialog/class_trustModeDialog.inc b/gosa-core/plugins/personal/posix/trustModeDialog/class_trustModeDialog.inc index 9f97cabf1..b6ccf9caa 100644 --- a/gosa-core/plugins/personal/posix/trustModeDialog/class_trustModeDialog.inc +++ b/gosa-core/plugins/personal/posix/trustModeDialog/class_trustModeDialog.inc @@ -26,7 +26,23 @@ class trustModeDialog extends plugin } $this->initially_was_account = $this->is_account; + } + public function PrepareForCopyPaste($source) + { + $this->accessTo = array(); + $this->trustModel= ""; + $this->is_account = FALSE; + if(isset($source['trustModel'][0])){ + $this->is_account = TRUE; + $this->trustModel= $source['trustModel'][0]; + if (isset($source['accessTo'])){ + for ($i= 0; $i<$source['accessTo']['count']; $i++){ + $tmp= $source['accessTo'][$i]; + $this->accessTo[$tmp]= $tmp; + } + } + } } public function setAcl($acl) -- 2.30.2