Bugzilla – Attachment 11302 Details for
Bug 8562
RandomizeHoldsQueueWeight ignored if StaticHoldsQueueWeight is empty.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8562 - RandomizeHoldsQueueWeight ignored if StaticHoldsQueueWeight is empty.
Bug-8562---RandomizeHoldsQueueWeight-ignored-if-St.patch (text/plain), 1.20 KB, created by
Kyle M Hall (khall)
on 2012-08-02 16:24:02 UTC
(
hide
)
Description:
Bug 8562 - RandomizeHoldsQueueWeight ignored if StaticHoldsQueueWeight is empty.
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2012-08-02 16:24:02 UTC
Size:
1.20 KB
patch
obsolete
>From 3a2bd5e878f913b235cbcac3d1af964b2ecfeb8a Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 2 Aug 2012 12:23:11 -0400 >Subject: [PATCH] Bug 8562 - RandomizeHoldsQueueWeight ignored if StaticHoldsQueueWeight is empty. > >If StaticHoldsQueueWeight is empty, but RandomizeHoldsQueueWeight is enabled, >the script build_holds_queue.pl should select branches for fulfillment requests >at random. Instead, it will select them in alphabetical order. >--- > misc/cronjobs/holds/build_holds_queue.pl | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/misc/cronjobs/holds/build_holds_queue.pl b/misc/cronjobs/holds/build_holds_queue.pl >index f01153e..e1a3d86 100755 >--- a/misc/cronjobs/holds/build_holds_queue.pl >+++ b/misc/cronjobs/holds/build_holds_queue.pl >@@ -287,6 +287,7 @@ sub MapItemsToHoldRequests { > @pull_branches = @branches_to_use; > } else { > @pull_branches = sort keys %items_by_branch; >+ shuffle(@pull_branches) if C4::Context->preference("RandomizeHoldsQueueWeight"); > } > foreach my $branch (@pull_branches) { > next unless exists $items_by_branch{$branch} and >-- >1.7.2.5
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 8562
:
11302
|
11303
|
16323
|
16324
|
16794