diff --git a/lib/RT/Interface/Web.pm b/lib/RT/Interface/Web.pm index 7718e619183..73a51b38d23 100644 --- a/lib/RT/Interface/Web.pm +++ b/lib/RT/Interface/Web.pm @@ -2051,6 +2051,10 @@ sub ExpandShortenerCode { if ( $type eq 'Chart' ) { $content->{SavedChartSearchId} = $id; } + elsif ( $type eq 'Graph' ) { + $content->{SavedSearchId} = $id; + $content->{SearchType} = 'Graph'; + } else { $content->{SavedSearchId} = $id; $content->{Class} = "RT::${type}s"; diff --git a/lib/RT/Interface/Web/MenuBuilder.pm b/lib/RT/Interface/Web/MenuBuilder.pm index 19d0e689208..57c7240d57d 100644 --- a/lib/RT/Interface/Web/MenuBuilder.pm +++ b/lib/RT/Interface/Web/MenuBuilder.pm @@ -575,6 +575,7 @@ sub BuildMainNav { ( $request_path =~ m{^/(?:Ticket|Transaction|Search)/} && $request_path !~ m{^/Search/Simple\.html} + && ($HTML::Mason::Commands::DECODED_ARGS->{SearchType} // '') ne 'Graph' ) || ( $request_path =~ m{^/Search/Simple\.html} && $HTML::Mason::Commands::DECODED_ARGS->{'q'} ) diff --git a/share/html/Search/Elements/EditSearches b/share/html/Search/Elements/EditSearches index 97e8d9bea48..c9db81f1b9e 100644 --- a/share/html/Search/Elements/EditSearches +++ b/share/html/Search/Elements/EditSearches @@ -100,7 +100,7 @@