From a864b595507608008830c1b95a1f7933d58e1ba7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 13 Nov 2015 13:47:44 +0100 Subject: [PATCH] Auftrags-Controller: Mehrfach-Artikelauswahl: Ergebnis nur rendern, wenn Artikel da --- SL/Controller/Order.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 2773f2c1e..478806614 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -353,8 +353,13 @@ sub action_show_multi_items_dialog { } sub action_multi_items_update_result { - $_[0]->render('order/tabs/_multi_items_result', { layout => 0 }, - multi_items => $_[0]->multi_items_models->get); + my $multi_items = $_[0]->multi_items_models->get; + if (scalar @{$multi_items}) { + $_[0]->render('order/tabs/_multi_items_result', { layout => 0 }, + multi_items => $multi_items); + } else { + $_[0]->render(\'', { layout => 0 }); # ') make emacs happy + } } sub action_add_multi_items { -- 2.20.1