[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-234-g348268e

Shawn Moore sartak at bestpractical.com
Mon Aug 9 22:36:42 EDT 2010


The branch, 3.9-trunk has been updated
       via  348268e45bcfd6884bffaa338470f01c29a3edfe (commit)
      from  5835397426d9645b64983210c388d56d551d4c4f (commit)

Summary of changes:
 share/html/Ticket/Elements/Tabs |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 348268e45bcfd6884bffaa338470f01c29a3edfe
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Mon Aug 9 22:38:40 2010 -0400

    Be more lax about linking Basics and Jumbo if you have ModifyCF

diff --git a/share/html/Ticket/Elements/Tabs b/share/html/Ticket/Elements/Tabs
index 2a97012..b720d1a 100755
--- a/share/html/Ticket/Elements/Tabs
+++ b/share/html/Ticket/Elements/Tabs
@@ -115,7 +115,10 @@ if ($Ticket) {
         current_subtab => $current_subtab
     };
 
-    my %can = ( ModifyTicket => $Ticket->CurrentUserHasRight('ModifyTicket'), );
+    my %can = (
+        ModifyTicket => $Ticket->CurrentUserHasRight('ModifyTicket'),
+        ModifyCustomField => $Ticket->CurrentUserHasRight('ModifyCustomField'),
+    );
 
     my $ticket_page_tabs = {
         _A => {
@@ -129,11 +132,14 @@ if ($Ticket) {
         },
     };
 
-    if ($can{ModifyTicket}) {
+    if ($can{ModifyTicket} || $can{ModifyCustomField}) {
         $ticket_page_tabs->{_B} = {
             title => loc('Basics'),
             path  => "Ticket/Modify.html?id=" . $id,
         };
+    }
+
+    if ($can{ModifyTicket}) {
         $ticket_page_tabs->{_C} = {
             title => loc('Dates'),
             path  => "Ticket/ModifyDates.html?id=" . $id,
@@ -146,6 +152,9 @@ if ($Ticket) {
             title => loc('Links'),
             path  => "Ticket/ModifyLinks.html?id=" . $id,
         };
+    }
+
+    if ($can{ModifyTicket} || $can{ModifyCustomField}) {
         $ticket_page_tabs->{_X} = {
             title => loc('Jumbo'),
             path  => "Ticket/ModifyAll.html?id=" . $id,

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


More information about the Rt-commit mailing list