Bug in RT 3.4.5 REST CLI

I think this is a minor bug:

/usr/local/rt/bin/rt create -t ticket set Queue=queue1
Requestor=test@shopzilla.com Subject=RESTtest1
Argument “new” isn’t numeric in sort at /usr/local/rt/bin/rt line 1282.

Ticket 47125 created.

Ticket gets created ok but the expand_list routine in the “rt” cli
script tries to numerically sort ids even when the only id is “new”.

I just put this in the subroutine to fix it:

return $list if $list eq "new";

Philip Kime
NOPS Systems Architect
310 401 0407