Active
Project:
Geo
Component:
Geo Field module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Sep 2009 at 16:42 UTC
Updated:
8 Jan 2010 at 10:42 UTC
Jump to comment: Most recent file
I use this workaround to have the nid in the title with autonodoetitle http://drupal.org/node/360359#comment-2031680
After that geocode don't geocode any more...
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | rule "change title" configuration | 89.26 KB | gagarine |
| #7 | rule "change title" configuration | 89.26 KB | gagarine |
Comments
Comment #1
gagarine commentedThis issue in autonodetitle #194197: Use (T)NID as node title
EDIT: I found a solution for autonodetitle with this patch http://drupal.org/node/194197#comment-1936310
But i'm pretty sure that geocode don't work good with rules...
Comment #2
allie mickaHi gagarine,
Can you let me know the steps to reproduce this?
Thanks a lot!
Comment #3
gagarine commentedOk i try to reproduce the bug with a simple installation and new version of geocode tomorrow...
Comment #4
gagarine commentedComment #5
gagarine commentedI try on fresh install with only geo alpha2 and cck with the widget long/lat.
I use the standard "page" type for my test with only one more field. The rules is trigerd on "After updating existing content" and only change the title to "hello bug" (see capture).
So After I update a content.... the line in the geo table is erased!
My content type "page" export:
Comment #6
gagarine commentedComment #7
gagarine commentedApparently capture is gone....
Comment #8
gagarine commentedI try with the HEAD (6.x-1.x-dev 2009-Dec-22 ) and the bug is still here.
Comment #9
phayes commentedThis is most likely directly related to this bug: http://drupal.org/node/667034
Comment #10
gagarine commentedThanks. I try the patch http://drupal.org/node/667034#comment-2405094 but nothing change for me with rules... but now it's time to sleep for me :).
Comment #11
gagarine commentedWith rules we go two times in the function geo_field into the case "presave".
- First time with an array (from the form)
- This array is converted into a WKB but NOT saved in the DB
- Second call of geo_field is from rules
- this time we have the WKB value from the first call so we have nothing to do
- BUT the workaround
Try to convert WKB -> WKT -> WKB. But this not work because this WKB is not from database. The transformation give number like "4.48165511052E-311" for "3" instead of "b/@".
WKB from DB is not the same of WKB from geo?
All the test is done with the patch http://drupal.org/node/667034#comment-2405094