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 <dbw2@calvin.edu>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
"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
},