Bug 5670: remove useless call to ->new when ->search is enought

Signed-off-by: Claire Gravely <claire_gravely@hotmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-09-28 10:21:44 +01:00 committed by Kyle M Hall
parent 01ebef46e7
commit 47fb829694
1 changed files with 2 additions and 2 deletions

View File

@ -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.