X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/48baa5ebf4441c31d45d0111a0fe8b88d10a4dcd..828c7d4e23cdaf973f83d5dc545e9be8ef73bedc:/SL/Controller/File.pm?ds=sidebyside diff --git a/SL/Controller/File.pm b/SL/Controller/File.pm index 2572da16b..7a8510691 100644 --- a/SL/Controller/File.pm +++ b/SL/Controller/File.pm @@ -135,7 +135,8 @@ sub action_ajax_unimport { sub action_ajax_rename { my ($self) = @_; - my $file = SL::File->get(id => $::form->{id}); + my ($id, $version) = split /_/, $::form->{id}; + my $file = SL::File->get(id => $id); if ( ! $file ) { $self->js->flash('error', $::locale->text('File not exists !'))->render(); return; @@ -462,7 +463,7 @@ sub _mk_render { my $first = shift @{$self->existing}; my ($first_id, $sfile) = split('_', $first, 2); my $file = SL::File->get(id => $first_id ); - $self->js->run('kivi.File.askForRename', $first_id, $file->file_name, $sfile, join (',', @{$self->existing}), $self->is_global); + $self->js->run('kivi.File.askForRename', $first_id, $file->file_type, $file->file_name, $sfile, join (',', @{$self->existing}), $self->is_global); } $self->js->render(); } else {