Fix a mistake with previous commit.
authorJason Stephenson <jason@sigio.com>
Sat, 30 Aug 2014 13:38:41 +0000 (09:38 -0400)
committerJason Stephenson <jason@sigio.com>
Sat, 30 Aug 2014 13:38:41 +0000 (09:38 -0400)
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 <jason@sigio.com>
lib/NCIP/ILS/Evergreen.pm

index cd1aa5a..85f9b28 100644 (file)
@@ -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}};