[Rt-commit] r5378 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Thu Jun 15 18:00:22 EDT 2006
Author: ruz
Date: Thu Jun 15 18:00:21 2006
New Revision: 5378
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/html/REST/1.0/Forms/ticket/default
Log:
r3120 at cubic-pc (orig r5297): jesse | 2006-05-26 08:11:22 +0400
r9830 at jesse-vincents-computer-2: jesse | 2006-05-25 23:18:44 -0400
Stopped using a deprecated API
Modified: rt/branches/3.7-EXPERIMENTAL/html/REST/1.0/Forms/ticket/default
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/html/REST/1.0/Forms/ticket/default (original)
+++ rt/branches/3.7-EXPERIMENTAL/html/REST/1.0/Forms/ticket/default Thu Jun 15 18:00:21 2006
@@ -205,8 +205,9 @@
}
# Display custom fields
- my $CustomFields = $ticket->QueueObj->CustomFields();
+ my $CustomFields = $ticket->QueueObj->TicketCustomFields();
while (my $cf = $CustomFields->Next()) {
+ next unless (!%$fields || (exists $fields->{"cf-".lc $cf->Name}));
my $vals = $ticket->CustomFieldValues($cf->Id());
my @out = ();
while (my $v = $vals->Next()) {
More information about the Rt-commit
mailing list