[rt-users] Error "I don't know about $field yet"

Mathew Snyder theillien at yahoo.com
Thu Mar 15 04:21:10 EDT 2007


Running this:

#!/usr/bin/perl

use warnings;
use strict;
use lib '/usr/local/rt-3.6.3/lib';
use lib '/usr/local/rt-3.6.3/local/lib';
use RT;
use RT::Tickets;

RT::LoadConfig();
RT::Init();

my $tix = new RT::Tickets(RT::SystemUser);
$tix->Limit('Queue = "CustomerCare" and Status = "resolved" and Status = "open"');

my $timeworked = {};
my %env;

while (my $ticket = $tix->Next) {
        my $customer = $ticket->FirstCustomFieldValue('Environment');
        unless ($customer) {warn "warning" . $ticket->id. "no profile"; next}
        my $transactions = $ticket->Transactions;
        while (my $transaction = $transactions->Next) {
                next unless ($transaction->TimeTaken);
                $timeworked = \$env{$transaction->Creator}{$transaction->TimeTaken};
        }
}

Gives me this:
[Thu Mar 15 08:16:24 2007] [error]: RestrictionsToClauses: I don't know about
yet at /usr/local/rt-3.6.3/lib/RT/Tickets_Overlay.pm line 2740.
(/usr/local/rt-3.6.3/lib/RT/Tickets_Overlay.pm:2827)

Does anyone have any insight about how I can fix this?

Mathew



More information about the rt-users mailing list