Code

Fixed copy vars
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Nov 2006 10:41:22 +0000 (10:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Nov 2006 10:41:22 +0000 (10:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5190 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/mimetypes/class_mimetypeGeneric.inc

index 851354759d9f374266386ef23fbcdbec94c81e08..af3c768f625f578158261a9239459962edf41b9d 100644 (file)
@@ -44,7 +44,8 @@ class mimetype extends plugin
   var $dialog                                                                      = NULL;
 
   /* These vars will be copied too, if you use copy&paste mode */
-  var $CopyPasteVars        = array("use_gotoMimeFilePattern","use_gotoMimeApplication","use_gotoMimeEmbeddedApplication","iconData");
+  var $CopyPasteVars        = array("use_gotoMimeFilePattern","use_gotoMimeApplication","use_gotoMimeEmbeddedApplication","iconData",
+                                    "gotoMimeLeftClickAction_I","gotoMimeLeftClickAction_E","gotoMimeLeftClickAction_Q","use_gotoMimeIcon");
 
   /* Select options */
   var $MimeGroups                            = array("application","audio","chemical","image","inode","message","model",
@@ -53,7 +54,6 @@ class mimetype extends plugin
   /* Orig_Dn is used to verify if this object is new or only edited */         
   var $orig_dn                 = "";
 
-
   function mimetype($config,$dn= NULL)
   {
     plugin::plugin ($config, $dn);
@@ -687,6 +687,13 @@ class mimetype extends plugin
           ));
 
   }
+
+  function PrepareForCopyPaste($source)
+  {
+    plugin::PrepareForCopyPaste($source);
+    $this->gotoMimeIcon       = $this->iconData;
+    $this->use_gotoMimeIcon   = $source->use_gotoMimeIcon;
+  }
 }
 // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>