Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 245056d0

Von Tamino Steinert vor etwa 1 Jahr hinzugefügt

  • ID 245056d021280e3887724c1a5e96a2d6915b28ca
  • Vorgänger d982e9f4
  • Nachfolger e141beb6

Model::Record: FIX: Workflow mit ausgewählten Positionen

Unterschiede anzeigen:

SL/Controller/Reclamation.pm
125 125
    my %use_item = map { $_ => 1 } @{$::form->{from_item_ids}};
126 126
    $flags{item_filter} = sub {
127 127
      my ($item) = @_;
128
      return %use_item{$item->id};
128
      return %use_item{$item->{RECORD_ITEM_ID()}};
129 129
    }
130 130
  }
131 131

  
......
513 513
  my $to_type = $::form->{to_type};
514 514
  my $to_controller = get_object_name_from_type($to_type);
515 515

  
516
  my %additional_params = ();
517
  if ($::form->{only_selected_items}) {
518
    my $from_item_ids = $::form->{selected_items} || [];
519
    $additional_params{from_item_ids} = $from_item_ids;
520
  }
521

  
522 516
  $self->save();
523 517
  flash_later('info', t8('The reclamation has been saved'));
524 518

  
519
  my %additional_params = ();
520
  if ($::form->{only_selected_item_positions}) { # ids can be unset before save
521
    my $item_positions = $::form->{selected_item_positions} || [];
522
    my @from_item_ids = map { $self->order->items_sorted->[$_]->id } @$item_positions;
523
    $additional_params{from_item_ids} = \@from_item_ids;
524
  }
525

  
525 526
  $self->redirect_to(
526 527
    controller => $to_controller,
527 528
    action     => 'add_from_record',

Auch abrufbar als: Unified diff