Bug 28306: Fix t/db_dependent/Koha/Objects.t
[koha-ffzg.git] / reserve / request.pl
index 4757ec0..6ab8ba7 100755 (executable)
@@ -309,8 +309,8 @@ foreach my $biblionumber (@biblionumbers) {
     my $biblio = Koha::Biblios->find( $biblionumber );
     unless ($biblio) {
         $biblioloopiter{noitems} = 1;
-        $template->param('noitems' => 1);
-        next;
+        $template->param('nobiblio' => 1);
+        last;
     }
 
     my $force_hold_level;
@@ -403,7 +403,7 @@ foreach my $biblionumber (@biblionumbers) {
 
     unless ( $items->count ) {
         # FIXME Then why do we continue?
-        $template->param('noitems' => 1);
+        $template->param('noitems' => 1) unless ( $multi_hold );
         $biblioloopiter{noitems} = 1;
     }