[Rt-commit] rt branch 5.0/do-not-show-rtname-as-an-active-menu created. rt-5.0.4-7-gfc61c1d4ca
    BPS Git Server 
    git at git.bestpractical.com
       
    Mon May 15 17:25:58 UTC 2023
    
    
  
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".
The branch, 5.0/do-not-show-rtname-as-an-active-menu has been created
        at  fc61c1d4cacc59cbc7969d1e92e3f92f14d5eac5 (commit)
- Log -----------------------------------------------------------------
commit fc61c1d4cacc59cbc7969d1e92e3f92f14d5eac5
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date:   Mon May 15 14:23:44 2023 -0300
    Do not show rt_name as an active menu item
    
    "RT for ..." menu points to the root of the RT instance. This was causing
    the "About Me" menu to be active at the same time as the Home menu.
diff --git a/lib/RT/Interface/Web/Menu.pm b/lib/RT/Interface/Web/Menu.pm
index 15a5c45ea9..f1e6ef9d4e 100644
--- a/lib/RT/Interface/Web/Menu.pm
+++ b/lib/RT/Interface/Web/Menu.pm
@@ -248,9 +248,12 @@ sub child {
 
             require URI::Escape;
             $base_path = URI::Escape::uri_unescape($base_path);
-            if ( $path eq $base_path ) {
+            if (   $path eq $base_path
+                && $key ne 'rt_name' )
+            {
                 $self->{children}{$key}->active(1);
             }
+
         }
     }
 
-----------------------------------------------------------------------
hooks/post-receive
-- 
rt
    
    
More information about the rt-commit
mailing list