[Rt-commit] rt branch, 4.6/create_ticket_link_in_menu, repushed

Aaron Trevena ast at bestpractical.com
Tue Nov 26 16:00:45 EST 2019


The branch 4.6/create_ticket_link_in_menu was deleted and repushed:
       was 69cf570b2ce11438dc94fd224388e3aa553e8a42
       now 8a3460cdfe913d942233b515967eaad946a73bc1

1: 69cf570b2c ! 1: 8a3460cdfe Add Create Ticket link in Menu
    @@ -2,29 +2,23 @@
     
         Add Create Ticket link in Menu
         
    -    Adds a new ticket submenu, with create ticket item that pops-up modal dialog to select queue and takes you to create ticket page in same way as button
    +    Adds create ticket item to the home submenu that pops-up modal dialog to select queue and takes you to create ticket page in same way as button
         Implements: I#221613
     
     diff --git a/lib/RT/Interface/Web/MenuBuilder.pm b/lib/RT/Interface/Web/MenuBuilder.pm
     --- a/lib/RT/Interface/Web/MenuBuilder.pm
     +++ b/lib/RT/Interface/Web/MenuBuilder.pm
     @@
    -     $search->child( assets => title => loc("Assets"), path => "/Asset/Search/" )
    -         if $current_user->HasRight( Right => 'ShowAssetsMenu', Object => RT->System );
    +     }
      
    -+    my $tickets_menu = $top->child( tickets =>
    -+        title       => loc('Tickets'),
    -+        description => loc('Tickets'),
    -+        path        => loc('Search/Simple.html'),
    -+    );
    -+
    -+    $tickets_menu->child( create_ticket =>
    +     my $home = $top->child( home => title => loc('Homepage'), path => '/' );
    ++    $home->child( create_ticket =>
     +		     raw_html => $HTML::Mason::Commands::m->scomp('CreateTicket', MenuItemOnly => 1 )
     +    );
     +
    -     my $reports = $top->child( reports =>
    -         title       => loc('Reports'),
    -         description => loc('Reports summarizing ticket resolution and status'),
    +     unless ($HTML::Mason::Commands::session{'dashboards_in_menu'}) {
    +         my $dashboards_in_menu = $current_user->UserObj->Preferences(
    +             'DashboardsInMenu',
     
     diff --git a/share/html/Elements/CreateTicket b/share/html/Elements/CreateTicket
     --- a/share/html/Elements/CreateTicket



More information about the rt-commit mailing list