(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

bdragon’s picture

Version: 5.x-2.7 » 5.x-3.x-dev
Status: Needs review » Fixed

Fixed in DRUPAL-5--3 and HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.