Code

Disabled "cut" for FAI objects
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 08:04:05 +0000 (08:04 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 08:04:05 +0000 (08:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10493 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_divListFai.inc
gosa-plugins/fai/admin/fai/class_faiManagement.inc

index 01384a069bb7f752443511fb0c078e5d7625f3fb..29b4b9c6a9606cef907bafe820d23e0ee2bede44 100644 (file)
@@ -161,8 +161,6 @@ class divListFai extends MultiSelectWindow
       $s.= "..|---|\n";
       $s.= "..|<img src='images/lists/copy.png' alt='' border='0' class='center'>".
         "&nbsp;"._("Copy")."|"."multiple_copy_systems|\n";
-      $s.= "..|<img src='images/lists/cut.png' alt='' border='0' class='center'>".
-        "&nbsp;"._("Cut")."|"."multiple_cut_systems|\n";
     }
 
     /* Add copy & paste icons, currently disabled, this ability is not implemeneted yet */
@@ -259,8 +257,6 @@ class divListFai extends MultiSelectWindow
        $acl_all = $ui->has_complete_category_acls($this->parent->fai_base,$this->module);
        if(preg_match("/(c.*w|w.*c)/",$acl_all) && $this->parent->CopyPasteHandler){
          $action .= "<input class='center' type='image'
-           src='images/lists/cut.png' alt='"._("cut")."' name='cut_%KEY%' title='"._("Cut this entry")."'>&nbsp;";
-         $action.= "<input class='center' type='image'
            src='images/lists/copy.png' alt='"._("copy")."' name='copy_%KEY%' title='"._("Copy this entry")."'>&nbsp;";
        }
 
index 499d8e14b024937613b262b8ec3129e0617c6132..e1b123ad205853aea52852537341352656e1f658 100644 (file)
@@ -114,7 +114,6 @@ class faiManagement extends plugin
                     "/^multiple_copy_fai/" => "copy_multiple", 
                     "/^multiple_cut_fai/" => "cut_multiple", 
                     "/^copy/" => "copy",
-                    "/^cut/" => "cut",
                     "/^remove_multiple_fai_objects/" => "del_multiple");
 
                foreach($_POST as $name => $value){
@@ -1152,7 +1151,7 @@ class faiManagement extends plugin
 
 
     /* Add a single entry to queue */
-    if($s_action == "cut" || $s_action == "copy"){
+    if($s_action == "copy"){
 
       /* Cleanup object queue */
       $this->CopyPasteHandler->cleanup_queue();
@@ -1163,7 +1162,7 @@ class faiManagement extends plugin
     }
 
     /* Add entries to queue */
-    if($s_action == "copy_multiple" || $s_action == "cut_multiple"){
+    if($s_action == "copy_multiple"){
 
       /* Cleanup object queue */
       $this->CopyPasteHandler->cleanup_queue();
@@ -1180,9 +1179,6 @@ class faiManagement extends plugin
         if($s_action == "copy_multiple"){
           $this->CopyPasteHandler->add_to_queue($dn,"copy",$a_setup[0],$a_setup[2],"fai");//$a_setup[1]);
         }
-        if($s_action == "cut_multiple"){
-          $this->CopyPasteHandler->add_to_queue($dn,"cut",$a_setup[0],$a_setup[2],"fai");//$a_setup[1]);
-        }
       }
     }