Bugzilla – Attachment 150350 Details for
Bug 20844
Reset a hold when it is missing after allocation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20844: (follow-up) Get working with transfers
Bug-20844-follow-up-Get-working-with-transfers.patch (text/plain), 1.87 KB, created by
Aleisha Amohia
on 2023-04-28 03:30:03 UTC
(
hide
)
Description:
Bug 20844: (follow-up) Get working with transfers
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2023-04-28 03:30:03 UTC
Size:
1.87 KB
patch
obsolete
>From c95d61cea5a75b875d4e5b551342ba56033d6f0c Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >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 cb32537f334..433d8f915e4 100755 >--- a/catalogue/moredetail.pl >+++ b/catalogue/moredetail.pl >@@ -248,7 +248,7 @@ foreach my $item (@items){ > ); > > $item_info->{nomod} = !$patron->can_edit_items_from( $item->homebranch ); >- $item_info->{waiting_holds} = $item->{object}->holds({ found => 'W', item_level_hold => { '!=' => 0 } })->count; >+ $item_info->{waiting_holds} = $item->{object}->holds({ found => [ 'W', 'T' ], item_level_hold => { '!=' => 0 } })->count; > > push @item_data, $item_info; > } >diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl >index 45c8641427d..4d8a0bc3363 100755 >--- a/cataloguing/additem.pl >+++ b/cataloguing/additem.pl >@@ -754,7 +754,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.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20844
:
79267
|
80760
|
80761
|
80890
|
80891
|
81045
|
81531
|
81623
|
81624
|
81640
|
81697
|
81698
|
81710
|
81711
|
81712
|
102334
|
102335
|
102336
|
113208
|
113209
|
113210
|
118264
|
118265
|
118266
|
125437
|
125438
|
125439
|
140214
|
140215
|
140216
|
150348
|
150349
|
150350
|
150480
|
159062
|
159063
|
159064
|
159065
|
159111
|
170263
|
170264