Bug 23091: Add template handling for new messages
[srvgit] / circ / checkout-notes.pl
index 5bad39a..61ce7cc 100755 (executable)
@@ -25,24 +25,17 @@ use C4::Output;
 use C4::Auth;
 use Koha::Checkouts;
 
-my $query = new CGI;
+my $query = CGI->new;
 
 my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
     {
         template_name   => "circ/checkout-notes.tt",
         query           => $query,
         type            => "intranet",
-        authnotrequired => 0,
-        flagsrequired   => { circulation => "manage_checkout_notes" },
+        flagsrequired   => { circulate => "manage_checkout_notes" },
     }
 );
 
-my $pending_checkout_notes = Koha::Checkouts->search({ noteseen => 0 })->count;
-
-$template->param(
-    pending_checkout_notes => $pending_checkout_notes,
-);
-
 my $action;
 foreach (qw( seen notseen )) {
     $action = $_ if ( $query->param("mark_selected-$_") );