Bug 18179: Update existing calls
This patch updates the existing occurrences of ->find called in a list
context.
There are certainly others that are not easy to catch with git grep.
Test plan:
Confirm that the 4 modified scripts still works as expected.
We need this one ASAP in master to make sure we will not get other
side-effects of this kind and to catch possible uncaught occurrences
before the release.
Tested scripts changed by this patch, they work as expected.
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit bb22703dca)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
5d94ff7513
commit
36dc4d8527
|
|
@ -755,7 +755,7 @@ $template->param( csrf_token =>
|
|||
|
||||
# HouseboundModule data
|
||||
$template->param(
|
||||
housebound_role => Koha::Patron::HouseboundRoles->find($borrowernumber),
|
||||
housebound_role => scalar Koha::Patron::HouseboundRoles->find($borrowernumber),
|
||||
);
|
||||
|
||||
if(defined($data{'flags'})){
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ if ($writeoff_all) {
|
|||
Koha::Account->new( { patron_id => $borrowernumber } )->pay(
|
||||
{
|
||||
amount => $amount,
|
||||
lines => [Koha::Account::Lines->find($accountlines_id)],
|
||||
lines => [ scalar Koha::Account::Lines->find($accountlines_id) ],
|
||||
type => 'writeoff',
|
||||
note => $payment_note,
|
||||
library_id => $branch,
|
||||
|
|
@ -208,7 +208,7 @@ sub writeoff_all {
|
|||
Koha::Account->new( { patron_id => $borrowernumber } )->pay(
|
||||
{
|
||||
amount => $amount,
|
||||
lines => [ Koha::Account::Lines->find($accountlines_id) ],
|
||||
lines => [ scalar Koha::Account::Lines->find($accountlines_id) ],
|
||||
type => 'writeoff',
|
||||
note => $payment_note,
|
||||
library_id => $branch,
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ if ( C4::Context->preference('AllowPatronToSetCheckoutsVisibilityForGuarantor'
|
|||
}
|
||||
|
||||
$template->param(
|
||||
borrower => Koha::Patrons->find($borrowernumber),
|
||||
borrower => scalar Koha::Patrons->find($borrowernumber),
|
||||
patron_messages => $patron_messages,
|
||||
opacnote => $borr->{opacnote},
|
||||
patronupdate => $patronupdate,
|
||||
|
|
|
|||
Loading…
Reference in New Issue