From 41f7626fe591a46d790b65c39aead7e28157dfad Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 23 Aug 2016 14:17:53 +0100 Subject: [PATCH] Bug 16464: Add FIXME MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit 931ed0ec9bbad4baa18547d361e2bed52140b637) Signed-off-by: Frédéric Demians --- opac/opac-discharge.pl | 2 ++ opac/opac-user.pl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/opac/opac-discharge.pl b/opac/opac-discharge.pl index 605efb7b49..de1ca85bc4 100755 --- a/opac/opac-discharge.pl +++ b/opac/opac-discharge.pl @@ -92,6 +92,8 @@ else { borrowernumber => $loggedinuser, pending => 1, }); + # FIXME looks like $available is not needed + # If a patron is discharged he has a validated discharge available my $available = Koha::Patron::Discharge::count({ borrowernumber => $loggedinuser, validated => 1, diff --git a/opac/opac-user.pl b/opac/opac-user.pl index f81b9d740d..14f548ac1f 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -100,6 +100,8 @@ if ($debar) { if ( $debar ne "9999-12-31" ) { $borr->{'userdebarreddate'} = $debar; } + # FIXME looks like $available is not needed + # If a patron is discharged he has a validated discharge available my $available = Koha::Patron::Discharge::count({ borrowernumber => $borrowernumber, validated => 1, -- 2.39.5