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 @@
<&|/l&>Permalink:
- +
diff --git a/share/html/Ticket/Graphs/index.html b/share/html/Ticket/Graphs/index.html index 1543260bfb4..e372dffc1ad 100644 --- a/share/html/Ticket/Graphs/index.html +++ b/share/html/Ticket/Graphs/index.html @@ -86,7 +86,7 @@ my @results; -my @save_arguments = qw(id Direction LeadingLink ShowLinks MaxDepth FillUsing ShowLinkDescriptions); +my @save_arguments = qw(Direction LeadingLink ShowLinks MaxDepth FillUsing ShowLinkDescriptions); foreach my $level ( 0 .. 6 ) { push @save_arguments, "Level-". $level ."-Properties"; } @@ -96,6 +96,7 @@ Query => \%ARGS, SavedSearch => $saved_search, SearchFields => \@save_arguments, + Type => 'Graph', ); $ARGS{'LeadingLink'} ||= 'Members';