[Koha-bugs] [Bug 20914] New: Internal server error in OPAC
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jun 12 15:33:21 CEST 2018
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: oleonard at myacpl.org
Reporter: stefan.berndtsson at ub.gu.se
QA Contact: testopia at bugs.koha-community.org
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.
More information about the Koha-bugs
mailing list