From 6c6148c73fa05be5904cb13385ed133bc615fdca Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 20 Nov 2007 14:48:30 +0000 Subject: [PATCH] Fixed W3c errors. Fixed reload in FAI template - caused calls on non object. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7827 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_MultiSelectWindow.inc | 2 +- include/class_plugin.inc | 2 +- plugins/admin/fai/class_faiTemplate.inc | 6 +++--- plugins/admin/fai/faiTemplate.tpl | 6 ++---- plugins/admin/mimetypes/class_mimetypeManagement.inc | 1 + 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index a239bfc13..aefb8b8f3 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -599,7 +599,7 @@ class MultiSelectWindow{ } if($ok){ if($layer_menu){ - $str = "..| "._("Restore")."|RestoreDeletedSnapShot|\n"; + $str = "..|"._("Restore")." "._("Restore")."|RestoreDeletedSnapShot|\n"; }else{ $str = "snapDialog)){ $this->snapDialog->save_object(); $msgs = $this->snapDialog->check(); if(count($msgs)){ diff --git a/plugins/admin/fai/class_faiTemplate.inc b/plugins/admin/fai/class_faiTemplate.inc index 68c1ec045..42923af35 100644 --- a/plugins/admin/fai/class_faiTemplate.inc +++ b/plugins/admin/fai/class_faiTemplate.inc @@ -210,7 +210,7 @@ class faiTemplate extends plugin } /* Save Dialog */ - if(isset($_POST['SaveSubObject'])){ + if(isset($_POST['SaveSubObject']) && is_object($this->dialog)){ $this->dialog->save_object(); $msgs = $this->dialog->check(); if(count($msgs)>0){ @@ -302,7 +302,7 @@ class faiTemplate extends plugin if(($this->SubObjects[$key]['status'] == "new") || ($this->SubObjects[$key]['dn'] == "new") || !preg_match("/r/",$s_acl)){ $down = ""; }else{ - $down = " + $down = " "._("Download")." "; } @@ -311,7 +311,7 @@ class faiTemplate extends plugin $s_acl = $this->ui->get_permissions($dn,"fai/faiTemplateEntry","cn") ; if(preg_match("/r/",$s_acl)){ - $edit_link = "".$tmp[$key].""; + $edit_link = "".$tmp[$key].""; $divlist->AddEntry(array( array("string"=> $edit_link), array("string"=>$down , "attach" => "style='width:20px;'"), array("string"=>str_replace("%s",base64_encode($key),$act), diff --git a/plugins/admin/fai/faiTemplate.tpl b/plugins/admin/fai/faiTemplate.tpl index cefe94e28..627c5ddd5 100644 --- a/plugins/admin/fai/faiTemplate.tpl +++ b/plugins/admin/fai/faiTemplate.tpl @@ -23,7 +23,7 @@ {render acl=$descriptionACL} - + {/render} @@ -31,9 +31,7 @@

  - + {t}List of template files{/t}

{$Entry_divlist} {if $sub_object_is_addable} diff --git a/plugins/admin/mimetypes/class_mimetypeManagement.inc b/plugins/admin/mimetypes/class_mimetypeManagement.inc index 61cde98e1..5cd9c15b3 100755 --- a/plugins/admin/mimetypes/class_mimetypeManagement.inc +++ b/plugins/admin/mimetypes/class_mimetypeManagement.inc @@ -559,6 +559,7 @@ class mimetypeManagement extends plugin /* Cleanup object queue */ $this->CopyPasteHandler->cleanup_queue(); + $this->start_pasting_copied_objects = FALSE; $dn = $this->mimetypes[$s_entry]['dn']; $this->CopyPasteHandler->add_to_queue($dn,$s_action,"mimetabs","MIMETABS","mimetypes"); } -- 2.30.2