Bug 17698: (QA follow-up) Fix minors design issues
[koha.git] / circ / waitingreserves.pl
index 24e0347..93ca0e9 100755 (executable)
@@ -39,6 +39,7 @@ use Koha::BiblioFrameworks;
 use Koha::Items;
 use Koha::ItemTypes;
 use Koha::Patrons;
+use Koha::Checkouts;
 
 my $input = new CGI;
 
@@ -130,11 +131,7 @@ while ( my $hold = $holds->next ) {
         $getreserv{'dotransfer'} = 1;
     }
 
-    my $borEmail = $patron->first_valid_email_address;
-
-    if ( $borEmail ) {
-        $getreserv{'borrowermail'}  = $borEmail;
-    }
+    $getreserv{patron} = $patron;
 
     if ($today > $calcDate) {
         if ($cancelall) {
@@ -153,6 +150,9 @@ while ( my $hold = $holds->next ) {
 }
 
 $template->param(cancel_result => \@cancel_result) if @cancel_result;
+
+my $pending_checkout_notes = Koha::Checkouts->search({ noteseen => 0 })->count;
+
 $template->param(
     reserveloop => \@reservloop,
     reservecount => $reservcount,
@@ -161,6 +161,7 @@ $template->param(
     show_date   => output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 1 }),
     ReservesMaxPickUpDelay => $max_pickup_delay,
     tab => $tab,
+    pending_checkout_notes => $pending_checkout_notes,
 );
 
 # Checking if there is a Fast Cataloging Framework