As stated in the title, if I have a text field with radio buttons and a set of allowed values, the values do not get imported from CSV even though I've ensured they all match correctly.
Importer:
$feeds_importer = new stdClass;
$feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */
$feeds_importer->api_version = 1;
$feeds_importer->id = 'people';
$feeds_importer->config = array(
'name' => 'People',
'description' => 'Imports people',
'fetcher' => array(
'plugin_key' => 'FeedsFileFetcher',
'config' => array(
'allowed_extensions' => 'txt csv tsv xml opml',
'direct' => FALSE,
),
),
'parser' => array(
'plugin_key' => 'FeedsCSVParser',
'config' => array(
'delimiter' => ',',
'no_headers' => 0,
),
),
'processor' => array(
'plugin_key' => 'FeedsNodeProcessor',
'config' => array(
'content_type' => 'person',
'expire' => '-1',
'author' => '1',
'mappings' => array(
0 => array(
'source' => 'title',
'target' => 'title',
'unique' => FALSE,
),
1 => array(
'source' => 'firstname',
'target' => 'field_firstname',
'unique' => FALSE,
),
2 => array(
'source' => 'lastname',
'target' => 'field_lastname',
'unique' => FALSE,
),
3 => array(
'source' => 'email',
'target' => 'field_email',
'unique' => FALSE,
),
4 => array(
'source' => 'phone',
'target' => 'field_phone',
'unique' => FALSE,
),
5 => array(
'source' => 'direct',
'target' => 'field_extension',
'unique' => FALSE,
),
6 => array(
'source' => 'location',
'target' => 'field_location',
'unique' => FALSE,
),
7 => array(
'source' => 'team',
'target' => 'field_department',
'unique' => FALSE,
),
8 => array(
'source' => 'im',
'target' => 'field_im',
'unique' => FALSE,
),
9 => array(
'source' => 'guid',
'target' => 'guid',
'unique' => 1,
),
),
'update_existing' => '0',
'input_format' => 'plain_text',
),
),
'content_type' => '',
'update' => 0,
'import_period' => '-1',
'expire_period' => 3600,
'import_on_create' => 1,
'process_in_background' => 0,
);
Comments
Comment #1
Renee S commented+1. Mine are content taxonomy fields, but same problem. But I'm still on 6.alpha10.
Comment #2
Seraphin42 commentedHaving the same problem.
Is it possible to include select type field in the target ? If the source match values of the target, it's imported, else it isn't.
I can help in testing if needed.
Comment #3
Seraphin42 commentedTested with the last alpha release, and it doesn't work.
Comment #4
upupax commentedsubscribe
Comment #5
megachrizThis appears to be no longer an issue. I tested this by importing a value to a field of type "List (text)" and widget "Check boxes/radio buttons". An allowed value was imported with success.