Running location-6.x-3.1 (http://drupal.org/project/location) and gmap-6.x-1.1 (http://drupal.org/project/gmap).

If:
1) the field "Location: Distance / Proximity" of an exposed filter of a view is set to the value "User's Latitude / Longitude (blank if unset)" and
2) no location is set in the registered user account,
then the view does: a) not cause the Distance input field to be removed/ ignored and b) not return any results/ rows.

This also happens with anonymous users, as their locations are unknown by definition. So, also they are confronted with empty views, because of this bug.

Comments

not_Dries_Buytaert’s picture

Furthermore:
I did add the "Content: Location (field_location)"-field as a (non-required) relationship and used that relationship for the filter.
I just found out that the filter does not need to be exposed for this bug to appear.
The bug appears with view styles Table, Calendar navigation and perhaps others.

dawehner’s picture

Project: Views (for Drupal 7) » Location
Version: 6.x-2.11 » 6.x-3.x-dev

This seems to me like a bug in the location module.

not_Dries_Buytaert’s picture

Status: Active » Postponed
not_Dries_Buytaert’s picture

Apparently, my previous post was too premature, as explained here: http://drupal.org/node/505596#comment-3498694

not_Dries_Buytaert’s picture

Title: Location distance field not removed, if registered user's location is not regsistered. » Distance field should be excluded in views (columns and exposed filter), when no user location is registered.
Status: Postponed » Active
legolasbo’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing old D6 issues as D6 is end of life