GCG-enabled node types don't allow empty location

noelbush - July 16, 2008 - 14:43
Project:Google Client Geocoder
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The GCG form says that setting "Required accuracy" to "Unknown location" is supposed to make the location not required, but in fact I find that if I don't set a location (for example, on my calendar entry type that *sometimes* needs a location, but not always), I get the error messages "The Longitude must be a number" and "The Latitude must be a number" and cannot save/update the item.

So here is a little patch that corrects that.

By the way, awesome module! I was so happy to find this after a lot of misery with the gmap/location set of modules that are currently in significant disarray. Your module works wonderfully for my needs!

AttachmentSize
gcg-allow-empty-location.patch1.1 KB

#1

bdragon - October 16, 2008 - 23:07
Status:active» fixed

Fixed (by using empty), thanks.

BTW, gmap and location aren't too bad nowadays... (..says the maintainer, aka me)

http://drupal.org/cvs?commit=146891

#2

Anonymous (not verified) - October 30, 2008 - 23:12
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.