Closed (fixed)
Project:
Location
Version:
6.x-3.1
Component:
Location_views
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
28 Aug 2011 at 04:59 UTC
Updated:
11 Mar 2012 at 11:28 UTC
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
Comment #1
donpwinston commentedfixed by using development version