From 8e35d05e35f63783ff403c7a4a5febe81cc43f8f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 27 Jan 2015 16:30:44 +0100 Subject: [PATCH] =?utf8?q?DeliveryPlan:=20Nicht=20abst=C3=BCrzen,=20wenn?= =?utf8?q?=20keine=20Eintr=C3=A4ge=20gefunden=20wurden?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/DeliveryPlan.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SL/Controller/DeliveryPlan.pm b/SL/Controller/DeliveryPlan.pm index ebb0dba50..461f25adb 100644 --- a/SL/Controller/DeliveryPlan.pm +++ b/SL/Controller/DeliveryPlan.pm @@ -126,6 +126,8 @@ sub calc_qtys { my %orderitems_by_id = map { $_->id => $_ } @$orderitems; + return unless @$orderitems; + my $query = <