Closed (fixed)
Project:
OpenLayers Geocoder
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2011 at 10:27 UTC
Updated:
25 Jul 2012 at 13:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
LGLC commentedComment #2
Yanxi commentedI am having this problem as well. The theme of the autocomplete suggestion list even changed when there was a validation error, and it doesn't auto fill the other cck text fields any more either. Any advice for a fix?
Comment #3
Yanxi commentedI found out that the problem was causing by arrange_fields module. It looks like all the fields are wrapped into arrange_fields module's container which might be the cause. Disabling it solved my problem.
Comment #4
LGLC commentedThanks for your reply Yanxi. I'm glad you got it sorted your end! I didn't have arrange_fields installed when doing this. though I did add in two Markup fields above the geocoder field - not sure if that would make any difference or not (they didn't wrap it, but were just above it). Unfortunately, the repeated errors meant I had to move to using the Location module. I'd still be interested in a fix, as I much prefer the OpenLayers Geocoder interface!
Comment #5
muhleder commentedSeeing this as well. The problem seems to be that the js is not being included if the form fails validation.
By adding an after build function instead of directly adding the js we can ensure that the the js is added in the after build (which is called after validation).
Comment #6
francewhoaConfirming this issue. Here is the missing .js file if the form fails validation
[...]/modules/openlayers_geocoder/js/openlayers_geocoder.js?z"></script>This issue is present in both openlayers_geocoder versions:
* 6.x-2.x-dev (2011-Apr-28 )
* 6.x-2.0-alpha5
Thanks muhleder :) I'll try to test the patch then post result here.
Comment #7
francewhoaConfirming patch in comment #5 works
Thanks muhleder :)
Comment #8
francewhoaAttaching module with patch in comment #5 already applied. For testing only. Do not use on live sites.
Patch applied to
openlayers_geocoder 6.x-2.x-dev (2011-Apr-28)Comment #9
steinmb commentedIf this is RTBC, why is it not commited?
Comment #10
muhleder commented@steinmb Perhaps the maintainer hasn't had time to review yet? Or perhaps waiting for more people to confirm the fix works for them?
Resetting status to normal, don't think this qualifies as a major as the geocoder will still work most of the time.
Comment #11
steinmb commentedThis patch no longer apply. Rerolling and testing. Still works and fixes the issue.
Have tried DM the maintainer to get hold of the maintainer of this module, since no patches are getting commited. Offered to become comaintainer to help out but sadly never got an answer.
Comment #12
steinmb commentedGot commit access and went ahead and committed #5 by @muhleder.
Pls. ignore patch rolled in #11.
Commit: http://drupalcode.org/project/openlayers_geocoder.git/commit/70a9559