Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 314f8fd6

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

  • ID 314f8fd67e5dce71878119b2f6acba9f3dd9e7ec
  • Vorgänger 3514ef95
  • Nachfolger 7336da56

DeliveryOrder: fix validate on save

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(), order_type => $self->type_data->validate_type($::form->{type}));
1164
  $order ||= SL::DB::DeliveryOrder->new(orderitems  => [], currency_id => $::instance_conf->get_currency_id(), order_type => $self->type_data->validate($::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