From 0dbc5053becba1e0fc453578958ccc159dac56a5 Mon Sep 17 00:00:00 2001 From: blake Date: Thu, 3 Nov 2016 10:42:24 -0500 Subject: [PATCH] LP1638921 List display broken in 2.11 The badges feature added more data to an array which broke bib_record_list_via_search Taking the first item in the array instead of the last item fixes the issue. Thanks to miker and Dyrcona! Signed-off-by: blake Signed-off-by: Mike Rylander --- Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm index 83b978965f..093c257bab 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/AppUtils.pm @@ -1913,7 +1913,7 @@ sub bib_container_items_via_search { } # Throw away other junk from search, keeping only bib IDs. - my $id_list = [ map { pop @$_ } @{$search_result->{ids}} ]; + my $id_list = [ map { shift @$_ } @{$search_result->{ids}} ]; return [] unless @$id_list; -- 2.11.0