[Koha-bugs] [Bug 26123] Show info about existing OPAC note/Patron message on patron's dashboard

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 26 15:16:12 CET 2020


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

--- Comment #19 from Lucas Gass <lucas at bywatersolutions.com> ---
(In reply to Katrin Fischer from comment #18)
> Hi Lucas, I believe there is something wrong about this line here, as the
> empty box shows when no notes, checkouts, holds, etc are on the account now,
> when it should be hidden:
> 
> +    if  ( $checkouts > 0 || $overdues_count > 0 || $holds_pending > 0 ||
> $holds_waiting > 0 || $total > 0 || $patron_messages > 0 || $patron_note > 0
> ) {
> 
> I suspect the $patron_messages > 0 might not be working. What do you think?

Cait, you're right. I think 'patron_messages > 0' needs to be
$patron_messages->count

Also $patron_note, having only one possible note, can be $patron_note instead
of $patron_note > 0.

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


More information about the Koha-bugs mailing list