When you enter 0 as longitude and 0 as latitude of the location that distances are measured against, the distance does not show up in the view, because the field handler treats those values as if no location was entered.

This issue is fixed by the patch I submitted in #326569: Implement click_sort in distance field handler. In case that patch is not committed, this issue is here to record the bug.

CommentFileSizeAuthor
#3 zero_distance.patch1.37 KBnickl

Comments

yesct’s picture

Status: Active » Needs review

Could someone else please test this, and make sure it still applied against the most recent dev version? That will make it more likely to get committed. Thanks.

yesct’s picture

Oh, after someone else confirms that patch works and still can be applied to the dev version, then they can change the status on the issue to Reviewed & Tested By the Community (RTBC). I'm only mentioning it because I think a lot of people who are trying to use location are not used to the "developer" side of the drupal issue queue, and this might be their first experience testing a patch, or changing a status in an issue queue. ... so here is more information on patches: http://drupal.org/patch/apply

nickl’s picture

StatusFileSize
new1.37 KB

Issue still remains.
When using static location with longitude or latitude set to 0 the distance does not get calculated and displayed.
This patch aims to only fix the bug.

yesct’s picture

tagging.

rooby’s picture

Status: Needs review » Closed (duplicate)

This is no longer an issue as the proximity filter was rewritten for the 3.1 release.

I'm pretty sure the issue this was fixed in was #718928: add options to set coordinates w/ user location, PHP code for field, filter