The hash keys were made using a base and $item->{date_due}, but this key
doesn't exists, so the possibility to have duplicate keys exists, and sometimes
the others items were not shown. This patch fix this bug.
---
C4/Search.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/C4/Search.pm b/C4/Search.pm
index 2799d97..7444e43 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -1408,7 +1408,7 @@ sub searchResults {
# For each grouping of items (onloan, available, unavailable), we build a key
to store relevant info about that item
if ( $item->{onloan} ) {
$onloan_count++;
- my $key = $prefix . $item->{due_date};
+ my $key = $prefix . $item->{onloan} .
$item->{barcode};
$onloan_items->{$key}->{due_date} =
format_date($item->{onloan});
$onloan_items->{$key}->{count}++ if
$item->{$hbranch};
$onloan_items->{$key}->{branchname} =
$item->{branchname};
--
1.6.0.4
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches