Revision 1050369d
Von Werner Hahn vor mehr als 6 Jahren hinzugefügt
SL/Controller/ShopPart.pm | ||
---|---|---|
66 | 66 |
|
67 | 67 |
sub action_show_files { |
68 | 68 |
my ($self) = @_; |
69 |
$main::lxdebug->message(0, "WH:ShowFiles "); |
|
70 |
$main::lxdebug->dump(0, 'WH:FORM ',$::form); |
|
71 |
$main::lxdebug->dump(0, 'WH:FORM ',$::form->{part}); |
|
72 | 69 |
|
73 |
#my $images = SL::DB::Manager::File->get_all_sorted( where => [ trans_id => $::form->{id}, modul => $::form->{modul}, file_content_type => { like => 'image/%' } ], sort_by => 'position' ); |
|
74 |
#my $images = SL::DB::Manager::ShopImage->get_all_sorted( where => [ partnumber => $::form->{part}{partnumber}, ], with_object => 'file', sort_by => 'position' ); |
|
75 | 70 |
my $images = SL::DB::Manager::ShopImage->get_all( where => [ 'files.object_id' => $::form->{id}, ], with_objects => 'file', sort_by => 'position' ); |
76 |
$main::lxdebug->dump(0, 'WH:ShowFiles1 ',$images); |
|
77 | 71 |
|
78 | 72 |
$self->render('shop_part/_list_images', { header => 0 }, IMAGES => $images); |
79 | 73 |
} |
Auch abrufbar als: Unified diff
Shopmodul: Aufräumarbeiten