From: erickson Date: Mon, 23 Oct 2006 18:02:00 +0000 (+0000) Subject: returning event (instead of undef) if the requested container does not exist in flesh... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=55945ae56ea083c96bd58b5c3a2fc4897bfecafd;p=evergreen%2Fpines.git returning event (instead of undef) if the requested container does not exist in flesh call git-svn-id: svn://svn.open-ils.org/ILS/trunk@6498 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm b/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm index f481983b7b..334e6b6531 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm @@ -84,7 +84,8 @@ sub bucket_flesh { my $meth = $types{$class}; my $bkt = $apputils->simplereq( $svc, "$meth.retrieve", $bucket ); - if(!$bkt) {return undef}; + #if(!$bkt) {return undef}; + return OpenILS::Event->new('CONTAINER_NOT_FOUND', payload=>$bucket) unless $bkt; if(!$bkt->pub) { my( $user, $e ) = $apputils->checkrequestor( $staff, $bkt->owner, 'VIEW_CONTAINER' );