[Rt-commit] [rtir] 03/07: Add RTIR homepage components to the list of allowed components
Jim Brandt
jbrandt at bestpractical.com
Wed Mar 26 16:21:44 EDT 2014
This is an automated email from the git hooks/post-receive script.
jbrandt pushed a commit to branch 3.2/rtir-homepage-updates
in repository rtir.
commit 14b15c9ae62b2a309ae73bd18495d75e702ebea4
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Tue Mar 4 14:22:46 2014 -0500
Add RTIR homepage components to the list of allowed components
RT 4.2 checks the list of components in the HomepageComponents
configuration for the list of components that are allowed. Add
the RTIR components to this list so the RTIR homepage can display
them.
---
lib/RT/IR/Config.pm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lib/RT/IR/Config.pm b/lib/RT/IR/Config.pm
index 2a97223..c369f32 100644
--- a/lib/RT/IR/Config.pm
+++ b/lib/RT/IR/Config.pm
@@ -80,6 +80,17 @@ sub Init {
}
};
+ my @homepage_components = @{RT->Config->Get('HomepageComponents')};
+
+ foreach my $component (RT->Config->Get('RTIR_HomepageComponents')){
+ # Add them if they aren't already there
+ # They may get added to the RT config manually
+ push @homepage_components, $component
+ unless grep /$component/, @homepage_components;
+ }
+
+ RT->Config->Set(HomepageComponents => \@homepage_components);
+
return;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list