From 2e0a0dbf5ae52b9845dcac212d61011845d25e67 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Wed, 8 Jul 2009 13:46:48 +0200 Subject: [PATCH] (bug #3405) fix on loan list in search result 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. Signed-off-by: Galen Charlton --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 52bfc607f1..c43169f68d 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1376,7 +1376,7 @@ s/\[(.?.?.?.?)$tagsubf(.*?)]/$1$subfieldvalue$2\[$1$tagsubf$2]/g; # 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}; -- 2.39.5