X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=C4%2FSearch.pm;h=4d5c0edd723d39d3237f93b218438438f176c7cb;hb=a16a75018063477cf13fdbdad60152bbb27a7616;hp=9379eebf27cad6ca4c10ec508a35a334c42b81c9;hpb=6585bfc28480d969eeff2289208f775d920ff19c;p=koha.git diff --git a/C4/Search.pm b/C4/Search.pm index 9379eebf27..4d5c0edd72 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1850,7 +1850,7 @@ sub searchResults { # though it is possible to have different authvals for different fws. my $shelflocations = - { map { $_->authorised_value => $_->lib } Koha::AuthorisedValues->search_by_koha_field( { frameworkcode => '', kohafield => 'items.location' } ) }; + { map { $_->{authorised_value} => $_->{lib} } Koha::AuthorisedValues->get_descriptions_by_koha_field( { frameworkcode => '', kohafield => 'items.location' } ) }; # get notforloan authorised value list (see $shelflocations FIXME) my $av = Koha::MarcSubfieldStructures->search({ frameworkcode => '', kohafield => 'items.notforloan', authorised_value => { not => undef } });