1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From 0f4e90556bb129289b851ec92b49d08a9245967e Mon Sep 17 00:00:00 2001
From: Andrew Ruthven <andrew@etc.gen.nz>
Date: Tue, 3 Mar 2026 21:17:07 +1300
Subject: Add missing require for RT::Base
Without this we get errors like the following in test suites of other
extensions (like RT::Extension::MergeUsers):
# Can't locate object method "_ImportOverlays" via package "RT::Base" (perhaps you forgot to load "RT::Base"?) at /usr/share/request-tracker5/lib/RT/Shredder/Constants.pm line 114.
# Compilation failed in require at /usr/share/request-tracker5/lib/RT/Shredder.pm line 232.
# BEGIN failed--compilation aborted at /usr/share/request-tracker5/lib/RT/Shredder.pm line 232.
Patch-Name: add-missing-rt-base-require.diff
Forwarded: https://github.com/bestpractical/rt/pull/414
---
lib/RT/Shredder/Constants.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/RT/Shredder/Constants.pm b/lib/RT/Shredder/Constants.pm
index 79620e49..5219918b 100644
--- a/lib/RT/Shredder/Constants.pm
+++ b/lib/RT/Shredder/Constants.pm
@@ -111,6 +111,7 @@ use constant {
WIPED => 0x020,
};
+require RT::Base;
RT::Base->_ImportOverlays();
1;
|