From: Dan Wells Date: Wed, 19 Nov 2014 17:16:03 +0000 (-0500) Subject: LP#1389403 Normalizer detection compatibility with LP#1373693 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ea1c430358991b3df45b9ee0da2356649d957207;p=evergreen%2Fmasslnc.git 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 --- 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 },