Skip to content

Commit

Permalink
show Gantt chart link on simple search when we already searched
Browse files Browse the repository at this point in the history
The previous link to the Gantt chart on simple search added in 01ab458
added the link not only on the search results page, but also on the
simple search page if you navigated there without a search. Since
there's nothing to graph yet, it doesn't make sense at that point, and
so we update to show only when there is a query.
  • Loading branch information
dgx committed Apr 2, 2016
1 parent c1be4ef commit d1d59e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/Callbacks/JSGantt/Elements/Tabs/Privileged
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if ( $request_path =~ qr{^/Search/} ) {
if ( $request_path =~ qr{^/Search/JSGantt.html} && $DECODED_ARGS->{Ticket} ) {
PageMenu->child( 'gantt' => title => loc('Gantt Chart'), path => '/Search/JSGantt.html?Ticket=' . $DECODED_ARGS->{Ticket} );
}
else {
elsif ( $request_path !~ qr{^/Search/Simple.html$} || $DECODED_ARGS->{q} ) {
my $current_search = $session{"CurrentSearchHash"} || {};
my $query = $DECODED_ARGS->{'Query'} || $current_search->{'Query'};
if ( $query ) {
Expand Down

0 comments on commit d1d59e9

Please sign in to comment.