Bug 31391: (QA follow-up) Remove unused variables in ModReserve recall conversion
$due_interval and $due_date (and $recall itself) returned by Koha::Recalls->add_recall were captured but never used in either branch of the new rank => "recall" handling. Drop the unused assignment - no behaviour change. Test plan: 1) prove t/db_dependent/Holds.t t/db_dependent/Reserves.t - all pass Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
0b7d3b856a
commit
4ff58e553b
|
|
@ -1253,7 +1253,7 @@ sub ModReserve {
|
|||
my $patron = Koha::Patrons->find($borrowernumber);
|
||||
if ( $hold->item_level_hold ) {
|
||||
if ( $hold->item->can_be_recalled( { patron => $patron, hold_convert => 1 } ) ) {
|
||||
my ( $recall, $due_interval, $due_date ) = Koha::Recalls->add_recall(
|
||||
Koha::Recalls->add_recall(
|
||||
{
|
||||
patron => $patron,
|
||||
biblio => $biblio,
|
||||
|
|
@ -1267,7 +1267,7 @@ sub ModReserve {
|
|||
}
|
||||
} else {
|
||||
if ( $biblio->can_be_recalled( { patron => $patron, hold_convert => 1 } ) ) {
|
||||
my ( $recall, $due_interval, $due_date ) = Koha::Recalls->add_recall(
|
||||
Koha::Recalls->add_recall(
|
||||
{
|
||||
patron => $patron,
|
||||
biblio => $biblio,
|
||||
|
|
|
|||
Loading…
Reference in New Issue