projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a8df53
)
Einlagern: Journal nicht abstürzen lassen, wenn noch nichts umgelagert wurde
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 16 Jul 2013 08:34:56 +0000
(10:34 +0200)
committer
Jan Büren
<jan@kivitendo-premium.de>
Thu, 18 Jul 2013 07:08:59 +0000
(09:08 +0200)
SL/Controller/Inventory.pm
patch
|
blob
|
history
diff --git
a/SL/Controller/Inventory.pm
b/SL/Controller/Inventory.pm
index
ba208c4
..
4336c71
100644
(file)
--- 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