When I add an address to a node manually it is all fine. But if I import an address using feeds and its field mapping feature eg Postcode > Address: Postcode. The node is correct (I am using OpenLayers Locator feature) - it shows the address (and pin on map) but when I go to edit the address field is blank. I have checked the db and both manual and feed addresses are in the correct table. Any idea where I should look to sort this please?

Comments

impara’s picture

A fast solution is not to allow your field name to run inside _field_filter_items function in mappers/field.inc
example:

      if ($field_name != "field_location") {
        $values = _field_filter_items($info, $values);
      }
MegaChriz’s picture

Category: Bug report » Support request
Status: Active » Fixed

If you are using the Address Field module, the country field is required. So I think the solution would be to also map to the country field.

MegaChriz’s picture

And if the country is not in your source you can use the Feeds Tamper plugin "Set default value" to set the country to a fixed value. For the source you could choose "Blank source" or, when using the CSV parser, a dummy source title that does not appear in the CSV file.

Status: Fixed » Closed (fixed)

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