Hi,
When importing into a node which has location fields in it, the code checks to see if the location fields I'm importing meets certain criteria. In specific - it checks to see if I include longitude/latitude fields and if they are valid.
There's a bug in this check. The first check is if one of the fields is empty. It is being done by multiplying both and if the result is zero - then we are cool. There is a bug here - what if both fields are empty? Such is my case, yet the node import is complaining that both fields need to be populated, or empty (the latter is exactly my case!... :-) ) . See attached screenshot for the error screen.
I've fixed this by applying the attached patch which changes the lon/lat checks code in supported/location.inc, line ~90 (I hope the patch is alright. Its my first...).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | node_import.png | 37.69 KB | boaz_r |
| location_lon_lat_bug.patch | 2.1 KB | boaz_r |
Comments
Comment #1
boaz_r commentedattaching a screenshot - note the third bullet in the error message (the other bullets are not related to this bug).
Comment #2
Robrecht Jacques commentedFixed. Will be included in next release of node_import (5.x-1.5). Thanks!
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.