From 47fb829694a0d409552da2e0bef448ca427bf22d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 28 Sep 2016 10:21:44 +0100 Subject: [PATCH] Bug 5670: remove useless call to ->new when ->search is enought Signed-off-by: Claire Gravely Signed-off-by: Kyle M Hall --- members/housebound.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/members/housebound.pl b/members/housebound.pl index 2fa0fb0cf0..ad3e88d611 100755 --- a/members/housebound.pl +++ b/members/housebound.pl @@ -117,8 +117,8 @@ if ( $method eq 'updateconfirm' and $houseboundprofile ) { $method = undef; } elsif ( $method eq 'visit_update_or_create' ) { # We want to edit, edit a visit, so we must pass its details. - $deliverers = Koha::Patrons->new->search_housebound_deliverers; - $choosers = Koha::Patrons->new->search_housebound_choosers; + $deliverers = Koha::Patrons->search_housebound_deliverers; + $choosers = Koha::Patrons->search_housebound_choosers; $houseboundvisit = $visit; } elsif ( $method eq 'visit_delete' and $visit ) { # We want ot delete a specific visit. -- 2.39.5