Commit 6f52d5f5 authored by Ruslan Zakirov's avatar Ruslan Zakirov
Browse files

ticket->QueueObj->TicketCustomFields is incorrect, proper way is to use ticket->CustomFields

git-svn-id: svn+ssh://svn.bestpractical.com/svn/bps-public/rt/3.8/trunk@18354 e417ac7c-1bcc-0310-8ffa-8f5827389a85
parent 90dd8853
......@@ -221,7 +221,7 @@ if (!keys(%data)) {
}
# Display custom fields
my $CustomFields = $ticket->QueueObj->TicketCustomFields();
my $CustomFields = $ticket->CustomFields;
while (my $cf = $CustomFields->Next()) {
next unless !%$fields
|| exists $fields->{"cf.{".lc($cf->Name)."}"}
......
......@@ -296,7 +296,7 @@ my $seen_queues = {};
while ( my $ticket = $Tickets->Next ) {
next if $seen_queues->{ $ticket->Queue }++;
my $custom_fields = $ticket->QueueObj->TicketCustomFields;
my $custom_fields = $ticket->CustomFields;
while ( my $field = $custom_fields->Next ) {
$fields->{ $field->id } = $field;
}
......
......@@ -87,7 +87,7 @@ while ( my $Ticket = $Tickets->Next()) {
}
}
my $cfs = $Ticket->QueueObj->TicketCustomFields();
my $cfs = $Ticket->CustomFields;
while (my $cf = $cfs->Next) {
$known_cfs{$cf->Id} = $cf->Name;
my @content;
......
......@@ -54,7 +54,7 @@
<& /Ticket/Elements/ShowBasics, Ticket => $Ticket &>
</&>
% if ($Ticket->QueueObj->TicketCustomFields->First) {
% if ($Ticket->CustomFields->First) {
<&| /Widgets/TitleBox, title => loc('Custom Fields'),
title_href => RT->Config->Get('WebPath')."/Ticket/Modify.html?id=".$Ticket->Id,
class => 'ticket-info-cfs' &>
......
......@@ -67,7 +67,7 @@
<%INIT>
my $TicketObj = LoadTicket($id);
my $CustomFields = $TicketObj->QueueObj->TicketCustomFields();
my $CustomFields = $TicketObj->CustomFields;
# call this to show up hints of valid cf values.
$m->comp(
......
......@@ -150,7 +150,7 @@
my $Ticket = LoadTicket($id);
my $CustomFields = $Ticket->QueueObj->TicketCustomFields();
my $CustomFields = $Ticket->CustomFields;
# call this to show up hints of valid cf values.
$m->comp(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment