From: Sven Schöling Date: Tue, 16 Jul 2013 08:34:56 +0000 (+0200) Subject: Einlagern: Journal nicht abstürzen lassen, wenn noch nichts umgelagert wurde X-Git-Tag: release-3.1.0beta1~161^2^2~50 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8bde65163db8c36ffa5e83bed7ee68ab859c106d;p=kivitendo-erp.git Einlagern: Journal nicht abstürzen lassen, wenn noch nichts umgelagert wurde --- 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