Revision 9bdee70d
Von Kivitendo Admin vor mehr als 8 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
1646 | 1646 |
if ( $form->{id} ) { |
1647 | 1647 |
require SL::DB::Part; |
1648 | 1648 |
my $part = SL::DB::Part->new( id => $form->{id} )->load; |
1649 |
if ( $form->{id} ) { |
|
1650 |
if ( $part->is_variant ) { |
|
1651 |
$form->{is_variant} = 1; # for checking in the template |
|
1652 |
@{ $form->{PART_VARIANTS} } = grep { $_->id != $part->id } @{$part->part_variants->[0]->parts}; |
|
1653 |
}; |
|
1654 |
}; |
|
1655 | 1649 |
$form->{SHOP_PARTS} = SL::DB::Manager::ShopPart->get_all( query => [ part_id => $part->id , 'shop.obsolete' => 0 ], with_objects => ['shop'] ); |
1656 | 1650 |
# $form->{ACTIVE_SHOPS} = $active_shops; |
1657 | 1651 |
# foreach my $shop ( @$active_shops ) { |
Auch abrufbar als: Unified diff
Shop - mergefehler rausgenommen