Skip to content

Commit

Permalink
WIP main menu callback
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrandtbuffalo committed Jan 7, 2025
1 parent d43e849 commit 45d20ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/RT/Interface/Web/MenuBuilder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 45d20ae

Please sign in to comment.