From 48c548fb407eb0b98e752b12029fe6451b5ae6b8 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 Signed-off-by: Henri-Damien LAURENT --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 7fbbab388c..d7770a3c7a 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1379,7 +1379,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.20.1