Revision 23b2cbd7
Von Werner Hahn vor etwa 7 Jahren hinzugefügt
SL/Controller/File.pm | ||
---|---|---|
289 | 289 |
my ($id,$version) = split /_/, $::form->{id}; |
290 | 290 |
my $file = SL::File->get(id => $id ); |
291 | 291 |
$file->version($version) if $version; |
292 |
my $ref = $file->get_content; |
|
293 |
); |
|
294 |
unlink($sfile->file_name); |
|
295 |
} |
|
296 |
1; |
|
297 |
} or do { |
|
298 |
$self->js->flash( 'error', t8('internal error (see details)')) |
|
299 |
->flash_detail('error', $@)->render; |
|
300 |
return; |
|
301 |
} |
|
302 |
} |
|
303 |
} |
|
304 |
$self->existing(\@existing); |
|
305 |
$self->_do_list(1); |
|
306 |
} |
|
307 |
|
|
308 |
sub action_download { |
|
309 |
my ($self) = @_; |
|
310 |
my ($id, $version) = split /_/, $::form->{id}; |
|
311 |
my $file = SL::File->get(id => $id ); |
|
312 |
$file->version($version) if $version; |
|
313 | 292 |
my $ref = $file->get_content; |
314 | 293 |
if ( $file && $ref ) { |
315 | 294 |
return $self->send_file($ref, |
... | ... | |
400 | 379 |
); |
401 | 380 |
} |
402 | 381 |
$self->files(\@files); |
403 |
$self->_mk_render('file/list', 1, 0, $json); |
|
382 |
|
|
383 |
if($self->object_type eq 'shop_image'){ |
|
384 |
$self->js |
|
385 |
->run('kivi.ShopPart.show_images', $self->object_id) |
|
386 |
->render(); |
|
387 |
}else{ |
|
388 |
$self->_mk_render('file/list', 1, 0, $json); |
|
389 |
} |
|
404 | 390 |
} |
405 | 391 |
|
406 | 392 |
sub _get_from_import { |
Auch abrufbar als: Unified diff
shopmodul: Shoppart: Kommentare und nicht benötigte Zeilen raus