From 55945ae56ea083c96bd58b5c3a2fc4897bfecafd Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 23 Oct 2006 18:02:00 +0000 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/OpenILS/Application/Actor/Container.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' ); -- 2.11.0