Closed (fixed)
Project:
Location
Version:
5.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2008 at 13:35 UTC
Updated:
14 Jul 2012 at 19:19 UTC
(Apologies this is not in proper patch format, not sure how to do so yet)
Search results always displays distance is in miles not km. A search using miles gives:
Approximately 8.5 miles from bh25
while the same search in km gives:
Approximately 13.7 miles from bh25
Which is the correct distance if it said 13.7 km instead of 13.7 miles. Fixed by changing location.module lines 249 & 252 from:
$distance_unit = ($edit['distance_unit'] == 'km') ...
to:
$distance_unit = ($proximity_params['unit'] == 'km') ...
Comments
Comment #1
bdragon commentedFixed in DRUPAL-5--3 and HEAD.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.