From 6f3f13ddc48e2d9f9c7f75bf653dc684a4702d80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 16 Jul 2013 10:34:56 +0200 Subject: [PATCH] =?utf8?q?Einlagern:=20Journal=20nicht=20abst=C3=BCrzen=20?= =?utf8?q?lassen,=20wenn=20noch=20nichts=20umgelagert=20wurde?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Inventory.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/Controller/Inventory.pm b/SL/Controller/Inventory.pm index ba208c437..4336c7117 100644 --- a/SL/Controller/Inventory.pm +++ b/SL/Controller/Inventory.pm @@ -215,7 +215,8 @@ sub mini_journal { my $query = 'SELECT trans_id, max(itime) FROM inventory GROUP BY trans_id ORDER BY max(itime) DESC LIMIT 10'; my @ids = selectall_array_query($::form, $::form->get_standard_dbh, $query); - my $objs = SL::DB::Manager::Inventory->get_all(query => [ trans_id => \@ids ]); + my $objs; + $obj = SL::DB::Manager::Inventory->get_all(query => [ trans_id => \@ids ]) if @ids; # at most 2 of them belong to a transaction and the qty determins in or out. # sort them for display -- 2.20.1