[Rt-commit] rt branch, 4.0/hide-new-ticket-link-in-selfservice-if-no-right, created. rt-4.0.4-146-g4036221

? sunnavy sunnavy at bestpractical.com
Thu Dec 22 01:13:10 EST 2011


The branch, 4.0/hide-new-ticket-link-in-selfservice-if-no-right has been created
        at  403622149291f5839a0163f632df195437b70347 (commit)

- Log -----------------------------------------------------------------
commit 403622149291f5839a0163f632df195437b70347
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Dec 22 13:53:32 2011 +0800

    don't show 'New ticket' link if no CreateTicket right on any queue

diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index 953e938..989d647 100755
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -836,7 +836,7 @@ my $build_selfservice_nav = sub {
     $tickets->child( closed => title => loc('Closed tickets'), path => '/SelfService/Closed.html' );
     if ( $queue_count > 1 ) {
         $tickets->child( new => title => loc('New ticket'),    path => '/SelfService/CreateTicketInQueue.html' );
-    } else {
+    } elsif ( $queue_count == 1 ) {
         $tickets->child( new => title => loc('New ticket'),    path => '/SelfService/Create.html?Queue=' . $queue_id );
     }
 

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


More information about the Rt-commit mailing list