clean up date customfield change
authormark <mark>
Wed, 26 Jan 2011 21:43:03 +0000 (21:43 +0000)
committermark <mark>
Wed, 26 Jan 2011 21:43:03 +0000 (21:43 +0000)
rt/lib/RT/Tickets_Overlay.pm

index 9450e4d..89d64c5 100644 (file)
@@ -1372,11 +1372,6 @@ sub _CustomFieldLimit {
     ($queue, $field, $cf, $column) = $self->_CustomFieldDecipher( $field );
     $cfid = $cf ? $cf->id  : 0 ;
 
-    # Handle date custom fields specially
-    if ( $cf->Type eq 'Date' ) {
-      return $self->_DateCustomFieldLimit($_field, $op, $value, %rest);
-    }
-
 # If we're trying to find custom fields that don't match something, we
 # want tickets where the custom field has no value at all.  Note that
 # we explicitly don't include the "IS NULL" case, since we would
@@ -2811,11 +2806,6 @@ sub LimitCustomField {
         $args{CUSTOMFIELD} = $CF->Id;
     }
 
-    # Handle special customfields types
-    if ($CF->Type eq 'Date') {
-        $args{FIELD} = 'DateCustomFieldValue';
-    }
-
     #If we are looking to compare with a null value.
     if ( $args{'OPERATOR'} =~ /^is$/i ) {
         $args{'DESCRIPTION'}