[Bps-public-commit] rt-extension-jsgantt branch, hide-for-new-simple-search, created. 1.03-1-ge30ae5b

Dustin Graves dustin at bestpractical.com
Mon Mar 28 16:56:36 EDT 2016


The branch, hide-for-new-simple-search has been created
        at  e30ae5b2bdf6e2efd59a5acded7164f1da3c37cb (commit)

- Log -----------------------------------------------------------------
commit e30ae5b2bdf6e2efd59a5acded7164f1da3c37cb
Author: Dustin Graves <dustin at bestpractical.com>
Date:   Mon Mar 28 20:46:48 2016 +0000

    hide tab link on new simple search page

diff --git a/html/Callbacks/JSGantt/Elements/Tabs/Privileged b/html/Callbacks/JSGantt/Elements/Tabs/Privileged
index b8745a4..27bb1fb 100644
--- a/html/Callbacks/JSGantt/Elements/Tabs/Privileged
+++ b/html/Callbacks/JSGantt/Elements/Tabs/Privileged
@@ -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 ) {

-----------------------------------------------------------------------


More information about the Bps-public-commit mailing list