﻿Index: includes/date_api_argument_handler.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/date/includes/date_api_argument_handler.inc,v
retrieving revision 1.1.2.29
diff -u -r1.1.2.29 date_api_argument_handler.inc
--- includes/date_api_argument_handler.inc	10 Jan 2009 22:38:52 -0000	1.1.2.29
+++ includes/date_api_argument_handler.inc	23 Jan 2009 08:41:29 -0000
@@ -256,42 +256,6 @@
       }
     }
   }
- 
-  /**
-   * Make sure the date field is added to the query.
-   * 
-   * Do this in pre_query() so it will get done even if the argument 
-   * is the wildcard, since query() is skipped when the wildcard is used.
-   */
-  function pre_query() { 
-    
-    // Unset invalid date values before the query runs.
-    if (!empty($this->view->args)) {
-      $argument = $this->view->args[$this->position];
-      $parts = $this->date_handler->arg_parts($argument);
-      if (empty($parts[0]['date']) && empty($parts[0]['period'])) {
-        unset($this->view->args[$this->position]); 
-      }
-    }
-    
-    $this->get_query_fields();
-    if (!empty($this->query_fields)) {
-      foreach ($this->query_fields as $query_field) {
-        $field = $query_field['field'];
-        // Explicitly add this table using add_table so Views does not
-        // remove it if it is a duplicate, since that will break the query.
-        $this->query->add_table($field['table_name'], NULL, NULL, $field['table_name']);
-        // Make sure the real field is added to the query.
-        $this->query->add_field($field['table_name'], $field['field_name']);
-        foreach ($field['related_fields'] as $related) {
-          $bits = explode('.', $related);
-          if ($bits[1] != $field['field_name']) {
-            $this->query->add_field($field['table_name'], $bits[1]);
-          }
-        }
-      }
-    }
-  }
   
   /**
    * Set up the query for this argument.
