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.

CommentFileSizeAuthor
gmapfield.module.hutch_1.patch2.39 KBhutch

Comments

zzolo’s picture

Status: Active » Fixed

I have updated this. I also put in a little switch to no hide things on the field configure page. http://drupal.org/node/639870

hutch’s picture

Looking good!
Thanks.

Status: Fixed » Closed (fixed)

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