Bug 36675 - WET: Remove RealTimeHoldsQueue pref check when calling ->enqueue
Summary: WET: Remove RealTimeHoldsQueue pref check when calling ->enqueue
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 35979
Blocks:
  Show dependency treegraph
 
Reported: 2024-04-23 12:51 UTC by Marcel de Rooy
Modified: 2024-04-23 13:04 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel de Rooy 2024-04-23 12:51:21 UTC
See bug 35979
Comment 1 Marcel de Rooy 2024-04-23 12:52:53 UTC
diff --git a/Koha/BackgroundJob/BatchUpdateBiblioHoldsQueue.pm b/Koha/BackgroundJob/BatchUpdateBiblioHoldsQueue.pm
index 6419435d41..4c64a61d1a 100644
--- a/Koha/BackgroundJob/BatchUpdateBiblioHoldsQueue.pm
+++ b/Koha/BackgroundJob/BatchUpdateBiblioHoldsQueue.pm
@@ -129,6 +129,8 @@ Enqueue the new job
 sub enqueue {
     my ( $self, $args ) = @_;
 
+    return if !C4::Context->preference('RealTimeHoldsQueue');    #TODO Remove check from callers
+