Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2e8fc31e

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

  • ID 2e8fc31e1c9c36a350f922d3ba537da00e0f169f
  • Vorgänger 7d4fd1c3
  • Nachfolger a7d67235

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