Bugzilla – Attachment 157874 Details for
Bug 35003
Holds with cancellation requests table on waitingreserves.tt does not filter by branch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35003: Make cancelled hold requests filter by branch
Bug-35003-Make-cancelled-hold-requests-filter-by-b.patch (text/plain), 1.53 KB, created by
David Nind
on 2023-10-25 20:05:58 UTC
(
hide
)
Description:
Bug 35003: Make cancelled hold requests filter by branch
Filename:
MIME Type:
Creator:
David Nind
Created:
2023-10-25 20:05:58 UTC
Size:
1.53 KB
patch
obsolete
>From 7e33436ad55afd1144585cbb0bc453509d180ea5 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 6 Oct 2023 15:15:39 +0000 >Subject: [PATCH] Bug 35003: Make cancelled hold requests filter by branch > >To recreate: >1. Make sure you have the "Default waiting hold cancellation policy" set to allow via circulation rules. >2. Make several holds at different branches holds and set them to waiting >3. Request to cancel those holds, making sure you cancel some for different branches. >4. Go to waitingreserves.tt and notice that you see all of the holds from all branches. >5. APPLY PATCH and restart services >6. Vist the waitingreserves.tt page and notice that the "Holds with cancellation requests" table can now filters by branch. >7. Use the "View all libraries" and make sure you can see all the holds with a cancellation request. > >Signed-off-by: David Nind <david@davidnind.com> >--- > circ/waitingreserves.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/circ/waitingreserves.pl b/circ/waitingreserves.pl >index 2e56c5e86f..26924f27fd 100755 >--- a/circ/waitingreserves.pl >+++ b/circ/waitingreserves.pl >@@ -116,7 +116,7 @@ while ( my $hold = $holds->next ) { > > } > >-my $holds_with_cancellation_requests = Koha::Holds->waiting->filter_by_has_cancellation_requests; >+my $holds_with_cancellation_requests = Koha::Holds->waiting->search({ ($all_branches ? () : ( branchcode => $default ) ) })->filter_by_has_cancellation_requests; > > $template->param(cancel_result => \@cancel_result) if @cancel_result; > >-- >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 35003
:
156633
|
157874
|
157975