Need to die if we fail to find a picklist, symmetric to the top of the conditional.
authoratz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 Jul 2010 17:08:37 +0000 (17:08 +0000)
committeratz <atz@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 Jul 2010 17:08:37 +0000 (17:08 +0000)
Otherwise, we crash out on $conn->respond($picklist->id);

git-svn-id: svn://svn.open-ils.org/ILS/trunk@17054 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Acq/Search.pm

index 753e032..33f40c9 100644 (file)
@@ -549,8 +549,8 @@ sub bib_search {
                 $bibs = [ @new_bibs ];
             }
         } else {
                 $bibs = [ @new_bibs ];
             }
         } else {
-            $picklist =
-                OpenILS::Application::Acq::Order::zsearch_build_pl($mgr, undef);
+            $picklist = OpenILS::Application::Acq::Order::zsearch_build_pl($mgr, undef)
+                or return $e->die_event;
         }
 
         $conn->respond($picklist->id);
         }
 
         $conn->respond($picklist->id);