[rt-devel] [patch] RT::Tickets->LimitDate

Robie Basak robie at principle.co.uk
Tue Aug 27 10:39:45 EDT 2002


Hi,

LimitDate using FIELD => 'Starts' doesn't quite work due to a typo,
patch below. Also, I've added QUOTEVALUE to RT::Tickets->Limit so that
it can be used in calls to RT::Tickets->Limit (see the contrib I'm about
to post to rt-users for an application :)

The patch is against 2.0.13, but the bug still exists in 2.0.14 and the
patch still succeeds (according to --dry-run anyway).

Robie.

*** Tickets.pm.orig	Tue Aug 27 15:30:16 2002
--- Tickets.pm	Tue Aug 27 14:52:42 2002
***************
*** 53,59 ****
  	      HasDepender => 'LINK',
  	      RelatedTo => 'LINK',
                Told => 'DATE',
!               StartsBy => 'DATE',
                Started => 'DATE',
                Due  => 'DATE',
                Resolved => 'DATE',
--- 53,59 ----
  	      HasDepender => 'LINK',
  	      RelatedTo => 'LINK',
                Told => 'DATE',
!               Starts => 'DATE',
                Started => 'DATE',
                Due  => 'DATE',
                Resolved => 'DATE',
***************
*** 110,115 ****
--- 110,116 ----
  		 OPERATOR => '=',
  		 VALUE => undef,
  		 DESCRIPTION => undef,
+ 		 QUOTEVALUE => 1,
  		 @_
  	       );
     $args{'DESCRIPTION'} = "Autodescribed: ".$args{'FIELD'} . $args{'OPERATOR'} . $args{'VALUE'},
***************
*** 1171,1176 ****
--- 1172,1178 ----
  				 ENTRYAGGREGATOR => 'AND',
  				 OPERATOR => $restriction->{'OPERATOR'},
  				 VALUE => $restriction->{'VALUE'},
+ 				 QUOTEVALUE => $restriction->{'QUOTEVALUE'},
  			       );
  	}
  	# }}}



More information about the Rt-devel mailing list