[rt-users] Statistics - RT3
Jesse Vincent
jesse at bestpractical.com
Wed Jun 18 02:48:57 EDT 2003
On Wed, Jun 18, 2003 at 04:12:33PM +0930, George Travan wrote:
>
> I'm having a problem with Simon Cozens Statistics Program under RT3. It
> almost works...
>
> error: Can't locate object method "Next" via package "RT::EasySearch"
> (perhaps you forgot to load "RT::EasySearch"?) at
> /opt/rt3/share/html/stats/DayOfWeek.html line 65.
>
> context: ...
> 61: my $tix = new RT::Tickets($session{'CurrentUser'});
> 62: $tix->LimitQueue (VALUE => $queue);
> 63: $tix->UnLimit;
> 64: if ($tix->Count) {
> 65: while (my $t = $tix->RT::EasySearch::Next) { # BLOODY HACK
> 66: $counts[(localtime($t->ResolvedObj->Unix))[6]]{resolved}++
> 67: if $t->Status eq "resolved";
> 68: $counts[(localtime($t->LastUpdatedObj->Unix))[6]]{killed}++
> 69: if $t->Status eq "dead";
> ...
>
Change EasySearch to SearchBuilder and see how much further it gets.
The underlying code changed for 3.0. (And it's not something that anyone
was ever supposed to touch, per Simon's comment)
> Anyone got the statistics working under rt3??
>
> Regards,
>
> /Geo
>
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
>
> Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm
>
--
http://www.bestpractical.com/rt -- Trouble Ticketing. Free.
More information about the rt-users
mailing list