I have a view that should list filtered nodes by a related node's (via node reference) location. The Location Proximity Search filter relationship is set to the related node reference. I'm using Latitude/Longitude input map. The resulting SQL is the following:

SELECT node.nid AS nid FROM node node  LEFT JOIN content_type_production node_data_field_venue ON node.vid = node_data_field_venue.vid LEFT JOIN node node_node_data_field_venue ON node_data_field_venue.field_venue_nid = node_node_data_field_venue.nid LEFT JOIN content_field_closing_dt node_data_field_closing_dt ON node.vid = node_data_field_closing_dt.vid WHERE ((node.type in ('production')) AND (1=0)) AND (DATE_FORMAT(node_data_field_closing_dt.field_closing_dt_value, '%Y-%m-%d') >= '2011-08-26')

The Proximity Search Filter is generating the (1=0)
Also the default values are not displayed in the exposed filter for distance, lat, and lon.

Drupal 6.22
Related Location node uses a Location CCK field. The Nodes Location module is not enabled. Zip code database is installed and is not empty.
What causes this? How do I fix it?

Comments

donpwinston’s picture

Status: Active » Closed (fixed)

fixed by using development version