[Rt-commit] rt branch, 3.9-trunk, updated. rt-3.8.8-233-g5835397
Shawn Moore
sartak at bestpractical.com
Mon Aug 9 22:29:41 EDT 2010
The branch, 3.9-trunk has been updated
via 5835397426d9645b64983210c388d56d551d4c4f (commit)
from 9dc4e7c8b38b22231c50cc15f3d22ade7b14cd31 (commit)
Summary of changes:
share/html/Ticket/Elements/ShowSummary | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 5835397426d9645b64983210c388d56d551d4c4f
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Mon Aug 9 22:31:23 2010 -0400
Make Basics/CFs clickable if you have ModifyCF
This fixes a failing test in t/customfields/access_via_queue.t
diff --git a/share/html/Ticket/Elements/ShowSummary b/share/html/Ticket/Elements/ShowSummary
index 712a86b..6a6257f 100755
--- a/share/html/Ticket/Elements/ShowSummary
+++ b/share/html/Ticket/Elements/ShowSummary
@@ -51,7 +51,7 @@
% $m->callback( %ARGS, CallbackName => 'LeftColumnTop' );
<&| /Widgets/TitleBox, title => loc('The Basics'),
- ($can_modify ? (title_href => RT->Config->Get('WebPath')."/Ticket/Modify.html?id=".$Ticket->Id) : ()),
+ (($can_modify || $can_modify_cf) ? (title_href => RT->Config->Get('WebPath')."/Ticket/Modify.html?id=".$Ticket->Id) : ()),
class => 'ticket-info-basics',
&>
<& /Ticket/Elements/ShowBasics, Ticket => $Ticket &>
@@ -59,7 +59,7 @@
% if ($Ticket->CustomFields->First) {
<&| /Widgets/TitleBox, title => loc('Custom Fields'),
- ($can_modify ? (title_href => RT->Config->Get('WebPath')."/Ticket/Modify.html?id=".$Ticket->Id) : ()),
+ (($can_modify || $can_modify_cf) ? (title_href => RT->Config->Get('WebPath')."/Ticket/Modify.html?id=".$Ticket->Id) : ()),
class => 'ticket-info-cfs',
&>
<& /Ticket/Elements/ShowCustomFields, Ticket => $Ticket &>
@@ -127,4 +127,5 @@ $Attachments => undef
</%ARGS>
<%INIT>
my $can_modify = $Ticket->CurrentUserHasRight('ModifyTicket');
+my $can_modify_cf = $Ticket->CurrentUserHasRight('ModifyCustomField');
</%INIT>
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list