From cc26357a27984bbcc8b2195be9e2795c49c8e7c4 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 --- members/housebound.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/members/housebound.pl b/members/housebound.pl index 2fa0fb0..ad3e88d 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.8.1