[Rt-commit] [rtir] 03/08: Add RTIR homepage components to the list of allowed components

Kevin Falcone falcone at bestpractical.com
Fri Mar 28 17:06:04 EDT 2014


This is an automated email from the git hooks/post-receive script.

falcone pushed a commit to branch master
in repository rtir.

commit 573954815d577d4b994b1282e60aa44f4378e8b0
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