Bug 36675

Summary: WET: Remove RealTimeHoldsQueue pref check when calling ->enqueue
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: pedro.amorim
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 35979    
Bug Blocks:    

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
+