Revision 245056d0
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
111 | 111 |
my %use_item = map { $_ => 1 } @{$::form->{from_item_ids}}; |
112 | 112 |
$flags{item_filter} = sub { |
113 | 113 |
my ($item) = @_; |
114 |
return %use_item{$item->id};
|
|
114 |
return %use_item{$item->{RECORD_ITEM_ID()}};
|
|
115 | 115 |
} |
116 | 116 |
} |
117 | 117 |
|
... | ... | |
786 | 786 |
flash_later('info', $self->type_data->text('saved')); |
787 | 787 |
|
788 | 788 |
my %additional_params = (); |
789 |
if ($::form->{only_selected_items}) { |
|
790 |
my $from_item_ids = $::form->{selected_items} || []; |
|
791 |
$additional_params{from_item_ids} = $from_item_ids; |
|
789 |
if ($::form->{only_selected_item_positions}) { # ids can be unset before save |
|
790 |
my $item_positions = $::form->{selected_item_positions} || []; |
|
791 |
my @from_item_ids = map { $self->order->items_sorted->[$_]->id } @$item_positions; |
|
792 |
$additional_params{from_item_ids} = \@from_item_ids; |
|
792 | 793 |
} |
793 | 794 |
|
794 | 795 |
$self->redirect_to( |
Auch abrufbar als: Unified diff
Model::Record: FIX: Workflow mit ausgewählten Positionen