Geocoding works, but the returned json response is showing "fields": [ ].
After some debugging, the culprit seems to be $contenttype = $_POST['content_type'];, the value I'm getting is 'search_theme_form'.

Disabled the search box (garland) solves the problem. If search box is enabled, it will stop working again.

CommentFileSizeAuthor
#3 openlayers_geocoder-927572.patch793 bytesguillaumev

Comments

mikesir87’s picture

Well, is the POST variable being set? The content type is required in order to select the correct instance of a field. Otherwise, if a field is shared in multiple content types, the correct settings may not be used.

One other thing... open the field settings, and resave them. I had to do that on a few occasions for some reason... possibly another change that was made?

guillaumev’s picture

Hi,

I noticed the same bug, using 2.x-alpha5: when the search box is enabled, autocomplete does not work. When it is disabled, it works...

guillaumev’s picture

Status: Active » Needs review
StatusFileSize
new793 bytes

Proposing the following patch that fixes the problem.

mikesir87’s picture

Gotcha! Yeah... that makes sense, and it works for me.

ckng’s picture

Status: Needs review » Reviewed & tested by the community

Yes, #3 should fixed the problem.

ademarco’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Thanks for the patch. Committed: http://drupal.org/cvs?commit=434874

joshuabud’s picture

Version: 6.x-2.x-dev » 6.x-2.0-alpha5

After struggling to figure out why the auto-complete wasn't working I tried the Dev version of the module and voila it worked. I wish this would have been mentioned before spending so much time trying to trouble shoot the alpha version.

If you are having trouble with auto-complete and you are not not using the dev version download and install it and magically it SHOULD work.

Great module, lets get a release version with the mentioned functionality out to the masses!