diff --git a/lib/RT/Interface/Web/MenuBuilder.pm b/lib/RT/Interface/Web/MenuBuilder.pm index 58743886e3..ff4a72e363 100644 --- a/lib/RT/Interface/Web/MenuBuilder.pm +++ b/lib/RT/Interface/Web/MenuBuilder.pm @@ -341,6 +341,9 @@ sub BuildMainNav { if ( $current_user->Name ) { $about_me->child( logout => title => loc('Logout'), path => '/NoAuth/Logout.html' ); } + + # Added in RT6 to handle main menu changes + $HTML::Mason::Commands::m->callback( CallbackName => 'PrivilegedMainNav', Path => $request_path, Search_Args => $args, Has_Query => $has_query, ARGSRef => \%args, CallbackPage => '/Elements/Header' ); } sub BuildPageNav { @@ -2003,6 +2006,8 @@ sub BuildSelfServiceMainNav { $about_me->child( logout => title => loc('Logout'), path => '/NoAuth/Logout.html' ); } + # Added in RT6 to handle main menu changes + $HTML::Mason::Commands::m->callback( CallbackName => 'PrivilegedMainNav', Path => $request_path, Search_Args => $args, Has_Query => $has_query, ARGSRef => \%args, CallbackPage => '/Elements/Header' ); } sub BuildSelfServicePageNav {