Posted by dasjo on November 13, 2012 at 3:35pm
2 followers
| Project: | Views GeoJSON |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
currently, views_geojson_bbox_argument uses query->add_where for adding the bounding box filters to the views query.
this doesn't work with aggregation being enabled, thus we should investigate using a more robust and generic approach.
see http://drupalcode.org/project/views_geojson.git/blob/refs/heads/7.x-1.x:...
Comments
#1
the attached patch is a rather a workaround than generalizing the problem, but it should help :)
#2
without the search api patch
#3
Why is the patch a workaround? What should it contain?
Reading http://api.drupal.org/api/views/handlers!views_handler_sort_group_by_numeric.inc/7 we should do more indeed.
But according #1806048: BBOX filter not working we should add at least add
<?phpfunction query($group_by = FALSE) {
?>
to this patch.
#4
Added the method argument as mentioned in #3