Code

Updated trustModes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 Apr 2010 09:38:33 +0000 (09:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 7 Apr 2010 09:38:33 +0000 (09:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17507 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/posix/trustModeDialog/class_trustModeDialog.inc

index 9f97cabf1ab0ba2a7a62b6bf15caedaae30a0e9c..b6ccf9caac64c6c6296c0d339d9bbc30b6e898f5 100644 (file)
@@ -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)