[freeside-commits] freeside/rt/share/html/Ticket/Elements EditTransactionCustomFields, 1.1.1.3, 1.2
Mark Wells
mark at wavetail.420.am
Wed Feb 16 19:47:52 PST 2011
Update of /home/cvs/cvsroot/freeside/rt/share/html/Ticket/Elements
In directory wavetail.420.am:/tmp/cvs-serv21777/share/html/Ticket/Elements
Modified Files:
EditTransactionCustomFields
Log Message:
TimeWorked-like custom fields, RT#11168
Index: EditTransactionCustomFields
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/share/html/Ticket/Elements/EditTransactionCustomFields,v
retrieving revision 1.1.1.3
retrieving revision 1.2
diff -u -w -d -r1.1.1.3 -r1.2
--- EditTransactionCustomFields 17 Feb 2011 00:25:06 -0000 1.1.1.3
+++ EditTransactionCustomFields 17 Feb 2011 03:47:50 -0000 1.2
@@ -49,14 +49,19 @@
% if ($CustomFields->Count) {
% while (my $CF = $CustomFields->Next()) {
% next unless $CF->CurrentUserHasRight('ModifyCustomField');
+% next unless $CF->UILocation eq $UILocation;
<tr>
-<td class="label"><% loc($CF->Name) %>:</td>
+<td class="label">
+<% loc($CF->Name) %>:
+</td>
<td>
<& /Elements/EditCustomField,
CustomField => $CF,
NamePrefix => $NamePrefix
&>
+% if ( $CF->Type ne 'TimeValue' ) {
<em><% $CF->FriendlyType %></em>
+% }
% if (my $msg = $m->notes('InvalidField-' . $CF->Id)) {
<br />
<span class="cfinvalidfield"><% $msg %></span>
@@ -83,5 +88,6 @@
$NamePrefix => "Object-RT::Transaction--CustomField-"
$TicketObj => undef
$QueueObj => undef
+$UILocation => ''
</%ARGS>
More information about the freeside-commits
mailing list