From 4043029a01018b794c4735c966f6468fc1ff88ff Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sat, 30 Aug 2014 09:38:41 -0400 Subject: [PATCH] Fix a mistake with previous commit. Needed to add a @{...} around my call to AppUtils->get_org_ancestors when retrieving the stat_cat entries. I was testing with use_precats enabled, so I missed it last night. Signed-off-by: Jason Stephenson --- lib/NCIP/ILS/Evergreen.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NCIP/ILS/Evergreen.pm b/lib/NCIP/ILS/Evergreen.pm index cd1aa5a..85f9b28 100644 --- a/lib/NCIP/ILS/Evergreen.pm +++ b/lib/NCIP/ILS/Evergreen.pm @@ -469,7 +469,7 @@ sub _init { # Load the required asset.stat_cat_entries: $self->{stat_cat_entries} = []; # First, make a regex for our ou and ancestors: - my $ancestors = join("|", $U->get_org_ancestors($self->{work_ou}->id())); + my $ancestors = join("|", @{$U->get_org_ancestors($self->{work_ou}->id())}); my $re = qr/(?:$ancestors)/; # Get the uniq stat_cat ids from the configuration: my @cats = uniq map {$_->{stat_cat}} @{$self->{config}->{items}->{stat_cat_entry}}; -- 2.43.2