Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9cec711d

Von Sven Schöling vor fast 3 Jahren hinzugefügt

  • ID 9cec711d2cb508438f5480857df5f049997b6d91
  • Vorgänger 632f0308
  • Nachfolger 598039be

DeliveryOrder: type roundtrip safety

Unterschiede anzeigen:

SL/Controller/DeliveryOrder.pm
1161 1161
  # order here solves this problem.
1162 1162
  my $order;
1163 1163
  $order   = SL::DB::DeliveryOrder->new(id => $::form->{id})->load(with => [ 'orderitems', 'orderitems.part' ]) if $::form->{id};
1164
  $order ||= SL::DB::DeliveryOrder->new(orderitems  => [], currency_id => $::instance_conf->get_currency_id(),);
1164
  $order ||= SL::DB::DeliveryOrder->new(orderitems  => [], currency_id => $::instance_conf->get_currency_id(), order_type => $self->type_data->validate_type($::form->{type}));
1165 1165

  
1166 1166
  my $cv_id_method = $self->cv . '_id';
1167 1167
  if (!$::form->{id} && $::form->{$cv_id_method}) {

Auch abrufbar als: Unified diff