Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Trying to import content with multiple values mapped to a target using 'geofield_set_target_smimple' will not work. Here is a simple patch to fix this. I had this problem trying to import content with multiple 'lat' and 'lon', values.
Comment | File | Size | Author |
---|---|---|---|
#1 | geofield-feeds-multiple-values-2146179.patch | 604 bytes | gnucifer |
Comments
Comment #1
gnucifer CreditAttribution: gnucifer commentedComment #2
gnucifer CreditAttribution: gnucifer commentedComment #3
joelpittetLANGUAGE_NONE
instead of'und'
please.and space after if start.
Also just a trick. You can cast an value to an array and it won't effect your original array.
$values = (array) $value;
will do what you are doing without the is_array check.Otherwise nice fix.
Comment #4
joelpittetActually this doesn't apply any more and seems to be resolved. I'm closing as a duplicate.
Comment #5
joelpittetAlso you should remove this patch because $values is the array but it's looping through $value (not plural)