[Rt-commit] rt branch, 5.0-trunk, updated. rt-5.0.0alpha1-94-g039eed17c1

Jim Brandt jbrandt at bestpractical.com
Thu Apr 9 13:55:58 EDT 2020


The branch, 5.0-trunk has been updated
       via  039eed17c11235b5680fa19d404e3a536070bc23 (commit)
       via  4b0457b1dbb2a8a6e0a465c1f1e874dd544c4ee0 (commit)
      from  c0d50734a65d59ae3879166b84ecde5159db8f43 (commit)

Summary of changes:
 lib/RT/Interface/Web/MenuBuilder.pm | 3 +++
 1 file changed, 3 insertions(+)

- Log -----------------------------------------------------------------
commit 4b0457b1dbb2a8a6e0a465c1f1e874dd544c4ee0
Author: Aaron Trevena <aaron at aarontrevena.co.uk>
Date:   Tue Nov 26 20:20:49 2019 +0000

    Add Create Ticket link to Home menu
    
    On most pages, the Create Ticket button is available in the title bar.
    However, when working on Assets or Articles, the Create button changes
    to Asset or Article leaving no obvious way to create a ticket.
    
    Add a Create Ticket link that is available anywhere in RT. Assets
    and Articles have their own menus with a similar Create link. Use
    the Home menu since RT doesn't have a stand-alone Ticket menu.

diff --git a/lib/RT/Interface/Web/MenuBuilder.pm b/lib/RT/Interface/Web/MenuBuilder.pm
index 5ce829c461..608064687a 100644
--- a/lib/RT/Interface/Web/MenuBuilder.pm
+++ b/lib/RT/Interface/Web/MenuBuilder.pm
@@ -92,6 +92,9 @@ sub BuildMainNav {
     }
 
     my $home = $top->child( home => title => loc('Homepage'), path => '/' );
+    $home->child( create_ticket => title => loc("Create Ticket"),
+                  path => "/Ticket/Create.html" );
+
     unless ($HTML::Mason::Commands::session{'dashboards_in_menu'}) {
         my $dashboards_in_menu = $current_user->UserObj->Preferences(
             'DashboardsInMenu',

commit 039eed17c11235b5680fa19d404e3a536070bc23
Merge: c0d50734a6 4b0457b1db
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Apr 9 13:47:36 2020 -0400

    Merge branch '5.0/create-ticket-link-in-menu' into 5.0-trunk


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


More information about the rt-commit mailing list