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

Jim Brandt jbrandt at bestpractical.com
Tue Mar 4 17:05:24 EST 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 c0067f00f378e581205c1d8c6949c4415e69a185
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