Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a6117b3a

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

  • ID a6117b3a79f6aa931fe4546c9508e00b80ba7c37
  • Vorgänger ee4e5fc9
  • Nachfolger fd0aa9cf

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