I’ve written an Element that writes individual ticket loading times to a
This file is then read by an html page.
The html page takes a ticket ID and retrieves a Transactions object for
It then wants to count the number of transactions on the ticket.
I had this working on one machine (solaris 9) with the following code:
$ticket = new RT::Ticket($RT::SystemUser);
$transactions = $ticket->Transactions;
$numtrans = $transactions->count;
Then I transferred the code to another solaris machine (the production
box) and it hiccups on ‘count’ with the following message:
Can’t locate object method “count” via package “RT::Transactions”
Why would that be?
Any suggestions appreciated.