[rt-users] Statistics - Invalid Date

Robert Spier rspier at pobox.com
Wed Jun 18 14:05:19 EDT 2003


This patch should fix that.  Not sure why I had it so strict in the
first place.  (Patch submitted as ticket #2843)

-R

Index: Tickets_Overlay.pm 
=================================================================== 
RCS file: /raid/tracking-cvs/rt.3.0/lib/RT/Tickets_Overlay.pm,v 
retrieving revision 1.5 
diff -u -u -r1.5 Tickets_Overlay.pm 
--- Tickets_Overlay.pm  12 Jun 2003 17:22:18 -0000      1.5 
+++ Tickets_Overlay.pm  18 Jun 2003 18:03:29 -0000 
@@ -345,7 +345,7 @@ 
   my ($sb,$field,$op,$value, at rest) = @_; 
  
   die "Invalid Date Op: $op" 
-    unless $op eq "<" or $op eq "=" or $op eq ">"; 
+    unless $op =~ /^(=|!=|>|<|>=|<=)$/; 
  
   my $meta = $FIELDS{$field}; 
   die "Incorrect Meta Data for $field" 


At Wed, 18 Jun 2003 17:09:30 +0930,
George Travan wrote:
> 
> 
> Thanks Jesse that did the trick.
> 
> Also now when I look at the time to resolve part of the stats package,
> I get a different error:
> 
> [Wed Jun 18 07:32:51 2003] [error]: Invalid Date op: >= at
> /opt/rt3/lib/RT/Tickets_Overlay.pm line 347.
> 
> Hmmm, something wrong with my dates?
> 
> 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



More information about the rt-users mailing list