Closed (duplicate)
Project:
Location
Version:
6.x-3.1-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
24 Mar 2009 at 13:45 UTC
Updated:
6 May 2009 at 00:53 UTC
As an offshoot of the solution to the problem in #346694: Map Link Doesn't show up - phone problem also fixed, I found another issue.
In template_preprocess_location, if country is in the list of hidden fields, it will be removed from $location, causing the map link generation to bail out due to this part:
if (!isset($location['country']) && $location['country'] != 'xx') {
return '';
}
A simple workaround is to use $variables['location'] instead when generating the map link. I've created a patch for this change.
| Comment | File | Size | Author |
|---|---|---|---|
| location.module.patch | 590 bytes | mikl |
Comments
Comment #1
miklBy the way, shouldn't
be changed to
(location.inc, line ~40)
Comment #2
yesct commentedThis needs someone to try it out. And after the question in #1 is answered, a new patch against dev is needed.
Comment #3
dww#340740: No links to map beside node location - Must display Country