Patch from Jason Stephenson to silence 'isn't numeric' warnings in actor log
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Apr 2010 12:58:49 +0000 (12:58 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Apr 2010 12:58:49 +0000 (12:58 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16300 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index b387f8f..7ec012f 100644 (file)
@@ -276,7 +276,7 @@ sub build_org_tree {
                        $org->ou_type( $org_typelist_hash->{$org->ou_type()});
                }
 
-               next unless (defined($org->parent_ou));
+        next if (!defined($org->parent_ou) || $org->parent_ou eq "");
 
                my ($parent) = grep { $_->id == $org->parent_ou } @list;
                next unless $parent;