make sure has is defined
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 25 Aug 2008 21:56:16 +0000 (21:56 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 25 Aug 2008 21:56:16 +0000 (21:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10441 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/AppUtils.pm

index 61c3f62..e76bab0 100644 (file)
@@ -1291,6 +1291,7 @@ sub find_highest_work_orgs {
     my($self, $e, $perm, $options) = @_;
     my $work_orgs = $self->get_user_work_ou_ids($e, $e->requestor->id);
     $logger->debug("found work orgs @$work_orgs");
+       $options ||= {};
 
     my @allowed_orgs;
        my $org_tree = $self->get_org_tree();