Index: openacs-4/packages/file-storage/catalog/file-storage.de_DE.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/catalog/file-storage.de_DE.ISO-8859-1.xml,v diff -u -r1.19.8.5 -r1.19.8.6 --- openacs-4/packages/file-storage/catalog/file-storage.de_DE.ISO-8859-1.xml 9 May 2017 10:07:43 -0000 1.19.8.5 +++ openacs-4/packages/file-storage/catalog/file-storage.de_DE.ISO-8859-1.xml 24 May 2017 16:09:24 -0000 1.19.8.6 @@ -160,13 +160,15 @@ Erneut suchen: Suchergebnisse Ausgew�hlte Dateien wurden kopiert. + Ausgew�hlte Dateien wurden verschoben. Berechtigungen erteilen Alle Versionen anzeigen %version.title% anzeigen %pretty_name% erstellen Gr��e Gr��e (Bytes) Beim Kopieren der folgenden Dateien ist ein Fehler aufgetreten + Es gab ein Problem beim Verschieben der folgenden Dateien <strong>Hinweis:</strong> Dieser Vorgang kann einige Minuten dauern. Name: Name: Index: openacs-4/packages/file-storage/catalog/file-storage.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/catalog/file-storage.en_US.ISO-8859-1.xml,v diff -u -r1.42.2.2 -r1.42.2.3 --- openacs-4/packages/file-storage/catalog/file-storage.en_US.ISO-8859-1.xml 9 May 2017 10:07:43 -0000 1.42.2.2 +++ openacs-4/packages/file-storage/catalog/file-storage.en_US.ISO-8859-1.xml 24 May 2017 16:09:24 -0000 1.42.2.3 @@ -163,14 +163,16 @@ Search Search again: Search Results - Selected items have been copied. + Selected items have been copied. + Selected items have been moved. Set Permissions show all versions Show %version.title% Create %pretty_name% Size Size (bytes) - There was a problem copying the following items + There was a problem copying the following items + There was a problem moving the following items <strong>Note:</strong> This may take a while, please be patient. Title Title: Index: openacs-4/packages/file-storage/catalog/file-storage.it_IT.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/catalog/file-storage.it_IT.ISO-8859-1.xml,v diff -u -r1.18.8.2 -r1.18.8.3 --- openacs-4/packages/file-storage/catalog/file-storage.it_IT.ISO-8859-1.xml 9 May 2017 10:07:44 -0000 1.18.8.2 +++ openacs-4/packages/file-storage/catalog/file-storage.it_IT.ISO-8859-1.xml 24 May 2017 16:09:24 -0000 1.18.8.3 @@ -159,13 +159,15 @@ Cerca Ancora Risultati della Ricerca Gli oggetti selezionati sono stati copiati. + Gli oggetti selezionati sono stati spostati. Definisci Permessi mostra tutte le versioni Mostra %version.title% Crea %pretty_name% Dimensione Dimensione (bytes) Si � verificato un problema nel copiare i seguenti oggetti + Si � verificato un problema nello spostare i seguenti oggetti <strong>Nota:</strong> Pu� richiedere qualche istante, attendi per favore. Titolo: Titolo : Index: openacs-4/packages/file-storage/www/move.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/file-storage/www/move.tcl,v diff -u -r1.10.2.2 -r1.10.2.3 --- openacs-4/packages/file-storage/www/move.tcl 2 Feb 2017 15:15:10 -0000 1.10.2.2 +++ openacs-4/packages/file-storage/www/move.tcl 24 May 2017 16:09:24 -0000 1.10.2.3 @@ -40,9 +40,10 @@ } if {$type eq "folder"} { lappend not_allowed_children $object_id - lappend not_allowed_parents $parent_id } - + # prevent people from selecting source folder as destination + # folder + lappend not_allowed_parents $parent_id } set total_count [template::multirow size move_objects] @@ -59,40 +60,40 @@ -privilege "write" - # check for WRTIE permission on each object to be moved - # DaveB: I think it should be DELETE instead of WRITE - # but the existing file-move page checks for WRITE - set error_items [list] - template::multirow foreach move_objects { - if {$copy_and_delete_p} { + # check for WRTIE permission on each object to be moved + # DaveB: I think it should be DELETE instead of WRITE + # but the existing file-move page checks for WRITE + set error_items {} + template::multirow foreach move_objects { + if {$copy_and_delete_p} { # copy and delete file to move it - db_transaction { - if {$type ne "folder" } { - set file_rev_id [db_exec_plsql copy_item {}] - set file_id [content::revision::item_id -revision_id $file_rev_id] - callback fs::file_revision_new -package_id $package_id -file_id $file_id -parent_id $folder_id - fs::delete_file -item_id $object_id -parent_id $parent_id - } else { - db_exec_plsql copy_folder {} - fs::delete_folder -folder_id $object_id -parent_id $parent_id - } - } on_error { - lappend error_items $name - } - } else { - # execute move command - db_transaction { - db_exec_plsql move_item {} - } on_error { - lappend error_items $name - } - } - } - + db_transaction { + if {$type ne "folder" } { + set file_rev_id [db_exec_plsql copy_item {}] + set file_id [content::revision::item_id -revision_id $file_rev_id] + callback fs::file_revision_new -package_id $package_id -file_id $file_id -parent_id $folder_id + fs::delete_file -item_id $object_id -parent_id $parent_id + } else { + db_exec_plsql copy_folder {} + fs::delete_folder -folder_id $object_id -parent_id $parent_id + } + } on_error { + lappend error_items $name + } + } else { + # execute move command + db_transaction { + db_exec_plsql move_item {} + } on_error { + lappend error_items $name + } + } + } + if {[llength $error_items]} { - set message "There was a problem moving the following items: [join $error_items ", "]" + set message "[_ file-storage.There_was_a_problem_moving_the_following_items]: [join $error_items ", "]" } else { - set message "Selected items moved" + set message [_ file-storage.Selected_items_have_been_moved] } ad_returnredirect -message $message $return_url ad_script_abort