[prev in list] [next in list] [prev in thread] [next in thread]
List: rt-devel
Subject: [Rt-devel] Edit TransactionCustomFields in Update.html
From: "=?ISO-8859-1?Q?R=E9mi?=" <mirebob () gmail ! com>
Date: 2008-12-11 14:29:07
Message-ID: 5a4fb0f70812110629o47b96612u80f9f10f83a1c572 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
hi rt-devels
I've made a little patch for Ticket/Update.html to disable the display of
TransactionCustomFields when a user doesn't have the right to modify it (so
there si no need to diplay it!).
% if (my $TxnCFs = $TicketObj->TransactionCustomFields) {
% while (my $CF = $TxnCFs->Next()) {
*% next unless $CF->CurrentUserHasRight('ModifyCustomField');*
<tr>
<td class="label"><% $CF->Name %>:</td>
<td><& /Elements/EditCustomField, CustomField => $CF, NamePrefix =>
"Object-RT::Transaction--CustomField-" &><em><% $CF->FriendlyType
%></em></td>
</tr>
% } # end if while
% } # end of if
$ diff Update.html /usr/share/request-tracker3.8/html/Ticket/Update.html
103d102
< % next unless $CF->CurrentUserHasRight('ModifyCustomField');
Rémi
[Attachment #5 (text/html)]
hi rt-devels<br><br>I've made a little patch for Ticket/Update.html to disable \
the display of TransactionCustomFields when a user doesn't have the right to \
modify it (so there si no need to diplay it!).<br><br><br> % if (my $TxnCFs = \
$TicketObj->TransactionCustomFields) {<br>% while (my $CF = \
$TxnCFs->Next()) {<br><b>% next unless \
$CF->CurrentUserHasRight('ModifyCustomField');</b><br><tr><br><td \
class="label"><% $CF->Name %>:</td><br> \
<td><& /Elements/EditCustomField, CustomField => $CF, NamePrefix \
=><br> "Object-RT::Transaction--CustomField-" \
&><em><% $CF->FriendlyType \
%></em></td><br></tr><br> % } # end if \
while<br>% } # end of if<br><br><br>$ diff Update.html \
/usr/share/request-tracker3.8/html/Ticket/Update.html<br>103d102<br>< \
% next unless \
$CF->CurrentUserHasRight('ModifyCustomField');<br> <br><br>Rémi<br>
_______________________________________________
List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic