Bugzilla – Attachment 125282 Details for
Bug 28510
Skip processing holds queue items from closed libraries when HoldsQueueSkipClosed is enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28510: Remove unnecessary conditional
Bug-28510-Remove-unnecessary-conditional.patch (text/plain), 1.41 KB, created by
Martin Renvoize (ashimema)
on 2021-09-24 15:59:41 UTC
(
hide
)
Description:
Bug 28510: Remove unnecessary conditional
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2021-09-24 15:59:41 UTC
Size:
1.41 KB
patch
obsolete
>From 9c93663ef39c815dbba4ada9053e5e6efd6ea48d Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 3 Jun 2021 07:29:52 -0400 >Subject: [PATCH] Bug 28510: Remove unnecessary conditional > >It makes sense to use items by branch to get the list of branches, as it >already tells use which branches have available items. We could use >branches to pull from instead, but all we would accomplish is added >extra ununsed loop iterations. We already know that any additional >branches in the branches to pull loop have no items to fill holds. >If they did, they would be in the items_by_branch hash. > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > C4/HoldsQueue.pm | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > >diff --git a/C4/HoldsQueue.pm b/C4/HoldsQueue.pm >index d665ef7a056..89c492ca2a5 100644 >--- a/C4/HoldsQueue.pm >+++ b/C4/HoldsQueue.pm >@@ -597,12 +597,7 @@ sub MapItemsToHoldRequests { > } > > unless ($itemnumber) { >- # not found yet, fall back to basics >- if ($branches_to_use) { >- $pull_branches = $branches_to_use; >- } else { >- $pull_branches = [keys %items_by_branch]; >- } >+ $pull_branches = [keys %items_by_branch]; > > # Try picking items where the home and pickup branch match first > PULL_BRANCHES: >-- >2.20.1
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 28510
:
121578
|
121579
|
121588
|
122193
|
122194
|
122195
|
124842
|
125280
|
125281
|
125282
|
125283