returning event (instead of undef) if the requested container does not exist in flesh...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 23 Oct 2006 18:02:00 +0000 (18:02 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 23 Oct 2006 18:02:00 +0000 (18:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6498 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm

index f481983..334e6b6 100644 (file)
@@ -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' );