Revision ee2528cf
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
2138 | 2138 |
|
2139 | 2139 |
my $is_new = !$self->order->id; |
2140 | 2140 |
|
2141 |
my $objects_to_close = SL::DB::Manager::Order->get_all(where => [id => \@converted_from_oe_ids, quotation => 1]); |
|
2141 |
my $objects_to_close = scalar @converted_from_oe_ids |
|
2142 |
? SL::DB::Manager::Order->get_all(where => [id => \@converted_from_oe_ids, quotation => 1]) |
|
2143 |
: undef; |
|
2142 | 2144 |
|
2143 | 2145 |
my $items_to_delete = scalar @{ $self->item_ids_to_delete || [] } |
2144 | 2146 |
? SL::DB::Manager::OrderItem->get_all(where => [id => $self->item_ids_to_delete]) |
Auch abrufbar als: Unified diff
Order-Controller: Leere Liste für objects_to_close abfangen