[Koha-bugs] [Bug 5789] Fines don't work when items have null homebranch

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun May 6 17:39:59 CEST 2018


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

--- Comment #5 from Barton Chittenden <barton at bywatersolutions.com> ---
(In reply to Saiful Amin from comment #4)
> This is not a data issue but a bug in the code. Here are the lines:
> 
> 109     my $branchcode =
> 110         ( $control eq 'ItemHomeLibrary' ) ? $overdue->{homebranch}
> 111       : ( $control eq 'PatronLibrary' )   ? $borrower->{branchcode}
> 112       :                                     $overdue->{branchcode};
> 113
> 
> The variable $overdue->{homebranch} is bad because the 'issues' table has no
> column called 'homebranch'. It should be 'branchcode' instead. I'm able to
> fix the error by changing the line 110 to this:
> 
> 110         ( $control eq 'ItemHomeLibrary' ) ? $overdue->{branchcode}

Saiful,

This bug was marked 'RESOLVED, FIXED'. Have you tested this in the most recent
version of Koha? If it's still an issue, please let us know; this does cause
support problems.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list