From f23109bbfd0dfabc571c840296179cac95b72431 Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Wed, 19 Nov 2014 12:16:03 -0500 Subject: [PATCH] LP#1389403 Normalizer detection compatibility with LP#1373693 In LP#1373693, $ou_ids become an optional argument when at the top of the tree. We need to account for that. Signed-off-by: Dan Wells Signed-off-by: Kathy Lussier Signed-off-by: Ben Shum --- Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm index 61e9c0783f..7f53b53b34 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm @@ -356,7 +356,7 @@ sub _label_sortkey_from_label { "open-ils.cstore.direct.asset.call_number.search.atomic", { label_sortkey => { ">=" => [$closest_cn->[0]->label_class->normalizer, $label] }, - owning_lib => $ou_ids, + (scalar(@$ou_ids) ? (owning_lib => $ou_ids) : ()), deleted => 'f', @$cp_filter }, -- 2.43.2