From 55264a78290c8f4b097a9c5b1610420f9ca6fa88 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Mon, 8 Sep 2008 17:45:07 +0200 Subject: [PATCH] bug fix 2590 : seems that when itemtypeimagelocation returns undef, the hash is messed up. put it at the end of the hash and everything is fine. Signed-off-by: Galen Charlton Signed-off-by: Chris Cormack --- catalogue/search.pl | 2 -- 1 file changed, 2 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index 2a761d4a9d..a5beb6d0b4 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -228,7 +228,6 @@ my $advanced_search_types = C4::Context->preference("AdvancedSearchTypes"); if (!$advanced_search_types or $advanced_search_types eq 'itemtypes') { foreach my $thisitemtype ( sort {$itemtypes->{$a}->{'description'} cmp $itemtypes->{$b}->{'description'} } keys %$itemtypes ) { my %row =( number=>$cnt++, - imageurl=> getitemtypeimagelocation( 'intranet', $itemtypes->{$thisitemtype}->{'imageurl'} ), ccl => $itype_or_itemtype, code => $thisitemtype, selected => $selected, @@ -245,7 +244,6 @@ if (!$advanced_search_types or $advanced_search_types eq 'itemtypes') { for my $thisitemtype (@$advsearchtypes) { my %row =( number=>$cnt++, - imageurl=> getitemtypeimagelocation( 'intranet', $thisitemtype->{'imageurl'} ), ccl => $advanced_search_types, code => $thisitemtype->{authorised_value}, selected => $selected, -- 2.39.5