From 4b5240001f7b451374129af39bca110a424ed1ec Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 26 Mar 2020 17:27:51 +0000 Subject: [PATCH] Bug 20844: (follow-up) Get working with transfers Test: 1) Change branch to Branch B 2) Place a biblio-level hold at Branch B 3) Change branch to Branch A 4) Check in item at Branch A and set waiting and trigger transfer 5) Go to edit item and set item as lost 6) Check borrower's notices tab and confirm the lost_waiting_hold notice was enqueued 7) Follow test plan again with item-level hold Sponsored-by: Catalyst IT --- catalogue/moredetail.pl | 2 +- cataloguing/additem.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index fa68d7cae4..e3796f2356 100755 --- a/catalogue/moredetail.pl +++ b/catalogue/moredetail.pl @@ -243,7 +243,7 @@ foreach my $item (@items){ $item->{patron} = $curr_borrower; } - $item->{waiting_holds} = $item->{object}->holds({ found => 'W', item_level_hold => { '!=' => 0 } })->count; + $item->{waiting_holds} = $item->{object}->holds({ found => [ 'W', 'T' ], item_level_hold => { '!=' => 0 } })->count; } my $mss = Koha::MarcSubfieldStructures->search({ frameworkcode => $fw, kohafield => 'items.itemlost', authorised_value => [ -and => {'!=' => undef }, {'!=' => ''}] }); diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 2d5cbe7f9e..7d066078a5 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -1001,7 +1001,7 @@ if ( C4::Context->preference('RevertLostBibLevelHolds') ){ # find if any of these lost items have waiting holds my @waitinglostitems; foreach my $lostitem ( @lostitems ){ - if ( $lostitem->holds({ found => 'W', item_level_hold => 1 })->count > 0 ){ + if ( $lostitem->holds({ found => [ 'W', 'T' ], item_level_hold => 1 })->count > 0 ){ push( @waitinglostitems, $lostitem ); } } -- 2.11.0