Repaired bug in search_filter_group which lead to empty results
delivered when data was in the cache.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
for my $org_id (@$org_list) {
my $grps;
- if (!$cache{search_filter_groups}{$org_id}) {
+ if (! ($grps = $cache{search_filter_groups}{$org_id}) ) {
$grps = $self->editor->search_actor_search_filter_group([
{owner => $org_id},
{ flesh => 2,
]);
$cache{search_filter_groups}{$org_id} = $grps;
}
-
+
# for the current context, if a descendant org has a group
# with a matching code replace the group from the parent.
$seen{$_->code} = $_ for @$grps;