[Rt-commit] [rtir] 02/02: Declare RTIR_HomepageComponents to be an array
Shawn Moore
shawn at bestpractical.com
Thu May 12 11:59:50 EDT 2016
This is an automated email from the git hooks/post-receive script.
shawn pushed a commit to branch 3.4/initdb-bailout
in repository rtir.
commit b1f18bd268a1c6cd4c8a24520d43a167b2df559d
Author: Shawn M Moore <shawn at bestpractical.com>
Date: Thu May 12 15:58:08 2016 +0000
Declare RTIR_HomepageComponents to be an array
Otherwise, `make initdb` without RT::IR in Plugins produces
screens full of undef warnings because RTIR_HomepageComponents
isn't initialized yet (since RT::IR isn't in Plugins), so
RT->Config->Get('RTIR_HomepageComponents') in list context was
returning undef.
By flagging it as an array, RT->Config->Get('RTIR_HomepageComponents')
without RT::IR in Plugins returns the empty list in list context,
avoiding all the warnings.
---
lib/RT/IR/Config.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/RT/IR/Config.pm b/lib/RT/IR/Config.pm
index c9dae90..2c2377e 100644
--- a/lib/RT/IR/Config.pm
+++ b/lib/RT/IR/Config.pm
@@ -64,6 +64,9 @@ sub Init {
Description => 'Display ticket after edit (don\'t stay on the edit page)',
},
},
+ 'RTIR_HomepageComponents' => {
+ Type => 'ARRAY',
+ },
);
%RT::Config::META = (%meta, %RT::Config::META);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list