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’);
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,
and it is done like this for the other CFs
could it be integrated in the next release ?
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’);
<% $CF->Name %>:
<& /Elements/EditCustomField, CustomField => $CF, NamePrefix =>
"Object-RT::Transaction--CustomField-" &><% $CF->FriendlyType
%>
% } # end if while
% } # end of if
$ diff Update.html /usr/share/request-tracker3.8/html/Ticket/Update.html
103d102
< % next unless $CF->CurrentUserHasRight(‘ModifyCustomField’);
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,
and it is done like this for the other CFs
could it be integrated in the next release ?
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’);
<% $CF->Name %>:
<& /Elements/EditCustomField, CustomField => $CF, NamePrefix =>
"Object-RT::Transaction--CustomField-" &><% $CF-
>FriendlyType %>
% } # end if while
% } # end of if