From 8e0abf19ae328346f3372cb2bf3320f71b626027 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 11 Sep 2015 17:25:07 +0200 Subject: [PATCH] =?utf8?q?Auftrags-Controller:=20CVars=20die=20nicht=20edi?= =?utf8?q?tierbar=20und=20nicht=20"valid"=20sind,=20behandeln=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … Todo: Noch nicht berücksichtigt ist der Filter nach Warengruppen bei CVars. --- SL/Controller/Order.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 83938509f..469eb40f0 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -322,6 +322,11 @@ sub _recalc { sub _save { my ($self) = @_; + # autovivify all cvars that are not in the form (cvars_by_config can do it) + foreach my $item (@{ $self->order->items }) { + $item->cvars_by_config; + } + my $errors = []; my $db = $self->order->db; -- 2.20.1