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>
This commit is contained in:
parent
1da486da89
commit
de656a7b5c
|
|
@ -753,7 +753,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'})){
|
||||
|
|
|
|||
|
|
@ -330,7 +330,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