Faced problem on multilingual site where geofield module is used. Possible solution is to replace key 'und' with constant LANGUAGE_NONE

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

uladzimir.karol’s picture

Here is my quick fix 'und'->LANGUAGE_NONE for geofield

joelpittet’s picture

Status: Active » Needs work
+++ b/geofield.feeds.inc
@@ -138,7 +138,7 @@ function geofield_set_target_simple($source, $entity, $target, $values) {
   $field = isset($entity->$field_name) ? $entity->$field_name : array('und' => array());

'und' is hiding under there too and I think in one other spot.

SocialNicheGuru’s picture

Status: Needs work » Needs review
FileSize
1.18 KB
joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

That covers all the remaining bits in 2.x thanks @SocialNicheGuru

poker10’s picture

Status: Reviewed & tested by the community » Fixed

Fixed, thanks all!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.