Use of uninitialized value in concatenation (.) or string

Hi.

I’m working on a script to find the number of tickets that are open or new.
Relatively simple and straightforward.
I keep getting the following warnings/debug statement:

/~~~~~~~~~~~~~~~~~~~~~~~~

[warning]: Use of uninitialized value in concatenation (.) or string at
/usr/local/rt3/lib/RT/Tickets_Overlay_SQL.pm line 384.
(/usr/local/rt3/lib/RT.pm:287)
[debug]: RT::Date used date::parse to make 2005-11-24 1132752600
(/usr/local/rt3/lib/RT/Date.pm:212)
________________________

the code that produces this is:

/~~~~~~~~~~~~~~~~~~~~~~~~

my $tickets = new RT::Tickets($RT::SystemUser);
$tickets->LimitStatus(VALUE => ‘new’);
$tickets->LimitStatus(VALUE => ‘open’);
$tickets->LimitDate(
FIELD => ‘Created’,
VALUE => $weekago,
OPERATOR => “>”
);
$tickets->LimitQueue(VALUE => $queue->Id);
$tickets->LimitWatcher(OPERATOR => ‘!=’, VALUE => undef, TYPE =>
‘Requestor’);
$tickets->OrderBy(FIELD => ‘Priority’, ORDER => ‘ASC’);

________________________

Why is this warning occuring and how can I solve the underlying problem?

Thanks.
Kind regards.

Luke

Hi.

I’m working on a script to find the number of tickets that are open or new.
Relatively simple and straightforward.
I keep getting the following warnings/debug statement:

/~~~~~~~~~~~~~~~~~~~~~~~~

[warning]: Use of uninitialized value in concatenation (.) or string at
/usr/local/rt3/lib/RT/Tickets_Overlay_SQL.pm line 384.
(/usr/local/rt3/lib/RT.pm:287)
[debug]: RT::Date used date::parse to make 2005-11-24 1132752600
(/usr/local/rt3/lib/RT/Date.pm:212)
________________________

the code that produces this is:

/~~~~~~~~~~~~~~~~~~~~~~~~

my $tickets = new RT::Tickets($RT::SystemUser);
$tickets->LimitStatus(VALUE => ‘new’);
$tickets->LimitStatus(VALUE => ‘open’);
$tickets->LimitDate(
FIELD => ‘Created’,
VALUE => $weekago,
OPERATOR => “>”
);
$tickets->LimitQueue(VALUE => $queue->Id);
$tickets->LimitWatcher(OPERATOR => ‘!=’, VALUE => undef, TYPE =>
‘Requestor’);
What do you want to do with this condition? If you want find only
tickets that has at least one requestor then it should be:
$tickets->LimitWatcher(OPERATOR => ‘IS NOT’, VALUE => ‘NULL’, TYPE =>
‘Requestor’);

$tickets->OrderBy(FIELD => ‘Priority’, ORDER => ‘ASC’);

________________________

Why is this warning occuring and how can I solve the underlying problem?

Thanks.
Kind regards.


Luke


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Download a free sample chapter of RT Essentials from O’Reilly Media at http://rtbook.bestpractical.com

WE’RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at http://bestpractical.com/services/training.html

Best regards, Ruslan.