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:
parent
01ebef46e7
commit
47fb829694
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue