https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20914
Bug ID: 20914
Summary: Internal server error in OPAC
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: OPAC
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
opac-user.pl tries to fetch an invalid column when calculating fines.
my $rental_fines = Koha::Account::Lines->search(
{
borrowernumber => $patron->borrowernumber,
amountoutstanding => { '>' => 0 },
accounttype => 'Rent',
itemnumber => $issue->{itemnumber}
},
{
select => [ { sum => 'amountoutstanding' } ],
as => ['rental_fines']
}
);
$issue->{rentalfines} = $charges->count ?
$charges->next->get_column('rental_fines') : 0;
This code fetches the column "rental_fines" into the variable "$rental_fines",
but then tries
to read that column data from a different variable ("$charges").
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/