Closed (fixed)
Project:
GMap Field
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2009 at 11:24 UTC
Updated:
7 Dec 2009 at 13:10 UTC
Using location cck and gmapfield.
If the gmap macro is set to disabled and the location node is subsequently saved the default macro ([gmap ]) is lost and is set to NULL in the content_field table, causing the map to not display.
The reason I suspect is that a disabled form element does not get saved, either because the browser does not send it or because drupal ignores it, not sure which.
The solution is to make the field type hidden when gmap macro is disabled. The same goes for marker.
The attached patch does this.
| Comment | File | Size | Author |
|---|---|---|---|
| gmapfield.module.hutch_1.patch | 2.39 KB | hutch |
Comments
Comment #1
zzolo commentedI have updated this. I also put in a little switch to no hide things on the field configure page. http://drupal.org/node/639870
Comment #2
hutch commentedLooking good!
Thanks.