Bug 19383: (QA follow-up) Remove unused name variable
authorKatrin Fischer <katrin.fischer.83@web.de>
Wed, 22 Aug 2018 18:49:52 +0000 (20:49 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 30 Aug 2018 19:52:49 +0000 (19:52 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

circ/returns.pl

index 8b652a6..c2f20ef 100755 (executable)
@@ -425,7 +425,6 @@ if ( $messages->{'ResFound'}) {
         my ( $messages, $nextreservinfo ) = GetOtherReserves($reserve->{itemnumber});
 
         my $patron = Koha::Patrons->find( $nextreservinfo );
-        my $name   = $patron ? $patron->surname . ", " . $patron->title . " " . $patron->firstname : '';
 
         $template->param(
             hold_auto_filled => 1,
@@ -441,7 +440,6 @@ if ( $messages->{'ResFound'}) {
                 itemnumber     => $item->itemnumber,
                 itembiblionumber => $biblio->biblionumber,
                 iteminfo       => $biblio->author,
-                name           => $name,
                 diffbranch     => 1,
             );
         }
@@ -464,7 +462,6 @@ if ( $messages->{'ResFound'}) {
 
     # same params for Waiting or Reserved
     $template->param(
-        # FIXME The full patron object should be passed to the template
         found          => 1,
         patron         => $patron,
         barcode        => $barcode,