[Koha-bugs] [Bug 16464] If a patron has been discharged, show a message in the OPAC

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 15 16:59:03 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16464

--- Comment #5 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Comment on attachment 54454
  --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=54454
Bug 16464 - If a patron has been discharged, show a message in the OPAC

Review of attachment 54454:
 --> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=16464&attachment=54454)
-----------------------------------------------------------------

::: opac/opac-user.pl
@@ +101,5 @@
>      }
> +    my $available = Koha::Patron::Discharge::count({
> +        borrowernumber => $borrowernumber,
> +        validated      => 1,
> +    });

Why do you count the number of validated discharges? I'd say that the following
call to is_discharged is enough.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list