? 373760-fix-aggregate.patch
? 378534-1.arg_validator_wildcard_php_sucks.patch
? TODO.txt
? api.txt
? book.txt
? doc
? get_all_views_reset_static.patch
? test.php
? views-list-css-rtl2.patch
Index: includes/query.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/includes/query.inc,v
retrieving revision 1.37
diff -u -p -r1.37 query.inc
--- includes/query.inc	10 Feb 2009 22:07:54 -0000	1.37
+++ includes/query.inc	20 Feb 2009 20:30:18 -0000
@@ -913,6 +913,7 @@ class views_query {
         $string .= $field['table'] . '.';
       }
       $string .= $field['field'];
+
       // store for use with non-aggregates below
       $fieldname = (!empty($field['alias']) ? $field['alias'] : $string);
 
@@ -923,6 +924,9 @@ class views_query {
         $string = "COUNT($string)";
         $has_aggregate = TRUE;
       }
+      else if (!empty($field['aggregate'])) {
+        $has_aggregate = TRUE;
+      }
       else {
         $non_aggregates[] = $fieldname;
       }
Index: modules/search/views_handler_filter_search.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/search/views_handler_filter_search.inc,v
retrieving revision 1.2
diff -u -p -r1.2 views_handler_filter_search.inc
--- modules/search/views_handler_filter_search.inc	10 Sep 2008 20:15:50 -0000	1.2
+++ modules/search/views_handler_filter_search.inc	20 Feb 2009 20:30:18 -0000
@@ -88,7 +88,7 @@ class views_handler_filter_search extend
       $join->construct('search_total', 'search_index', 'word', 'word');
       $this->query->add_relationship(NULL, $join, 'search_index');
 //      $this->query->add_table('search_total', 'search_index', $join);
-      $this->query->add_field('', "SUM(search_index.score * search_total.count)", 'score');
+      $this->query->add_field('', "SUM(search_index.score * search_total.count)", 'score', array('aggregate' => TRUE));
       $this->query->add_where($this->options['group'], $this->search_query[2], $this->search_query[3]);
       $this->query->add_where($this->options['group'], "search_index.type = '%s'", $this->view->base_table);
       if (!$this->search_query[5]) {
