hi all,<br>my first post was certainly not well formed<br><br>so in RT version 3.8.2,<br>in Ticket/Update.html , a form input is display for all Transaction CFs even if the user doesn't have the right to modify it<br><br>
here's the patch<br><br>--- html/Ticket/Update.html-orig 2009-01-08 15:09:28.000000000 +0100<br>+++ html/Ticket/Update.html 2008-12-11 15:12:02.000000000 +0100<br>@@ -100,6 +101,7 @@<br><br> % if (my $TxnCFs = $TicketObj->TransactionCustomFields) {<br>
% while (my $CF = $TxnCFs->Next()) {<br>+% next unless $CF->CurrentUserHasRight('ModifyCustomField');<br> <tr><br> <td class="label"><% $CF->Name %>:</td><br>
<td><& /Elements/EditCustomField, CustomField => $CF, NamePrefix =><br><br><br>I know it's just one line, but that really will cleanup the display of the Update page for tickets with a lot of Transaction CFs,<br>
and it is done like this for the other CFs<br>could it be integrated in the next release ?<br><br>Rémi<br><br><br><div class="gmail_quote">2008/12/11 Rémi <span dir="ltr"><<a href="mailto:mirebob@gmail.com" target="_blank">mirebob@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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>
<font color="#888888">
<br><br>Rémi<br>
</font></blockquote></div><br>