Closed (fixed)
Project:
Geofield
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2012 at 23:31 UTC
Updated:
21 Jul 2013 at 02:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
phayes commentedI think this might be fixed now. Marking it as such. Can you test with the latest dev and let us know? If it's still not fixed please re-open.
Comment #3
balagan commentedI am using 7.x-2.0-alpha2+6-dev version, and I have this problem. When saving the content type with openlayers widget, I see
<input class="geofield_wkt" type="hidden" name="field_wptgeofield[und][0][geom]" value="POINT(2.329101522979369 8.054395058755233)">When saving the node, geometry data is not saved, the $node object in hook_node_presave() contains empty field_wptgeofield[und] array.
I am suspicious of the input handler expecting old geofield structure?Comment #4
balagan commentedWell, openlayers_geofield_widget_element_validate() validates it nicely... Will debug more later.
Comment #5
balagan commentedThe node_form_submit gets field_wptgeofield[und][0] with the value. The [geom] dimension is missing!
Comment #6
balagan commentedComment #7
balagan commentedIt works when I change line 417 in geofield.widgets.openlayers.inc to:
form_set_value($element['geom'], $geom->out('wkt'), $form_state);I think line 405 should be changed too.
Comment #8
gigabates commented#7 works for me too.
Comment #9
Robin_K commentedYup, the fix from #7 works for me too
Comment #10
Anonymous (not verified) commentedI tried #7 as well, it looks like it solves the problem when using single point entries. Since the issue is marked critical I rolled this as a patch and I'm marking this as "needs review".
Please review this patch! When done reviewing it, make a comment if it works (or if not!). If someone could test the "collections" to see if line 405 needs an update that would be great.
Once we have some reviews someone (who is not me) can then mark this to be RTBC... unless the module maintainers want to jump in and fast-track this one.
Comment #11
rballou commented#10 works for me. Thanks for the patch
Comment #12
primerg commentedDoesn't work for me
Comment #14
Brandonian commentedI can't replicate this issue with the current dev version of Geofield. I did recently apply a patch that affects Openlayers integration. See #1963242: Openlayers + Geocoder hides Openlayers widget. Please reopen if symptoms continue.