Commit 8043533c authored by KarenS's avatar KarenS
Browse files

We need a distinct so we don't try to process multiple value nodes more than once.

parent bd2ddff7
......@@ -84,7 +84,7 @@ function content_migrate_storage_type($field_value) {
if (isset($field_value['db_storage'])) {
return $field_value['db_storage'];
}
elseif ($field_value['cardinality'] > 1 || $field_value['cardinality'] == FIELD_CARDINALITY_UNLIMITED) {
elseif ($field_value['cardinality'] != 1 || $field_value['cardinality'] == FIELD_CARDINALITY_UNLIMITED) {
$storage = CONTENT_DB_STORAGE_PER_FIELD;
}
else {
......
......@@ -17,7 +17,6 @@ function content_migrate_select($form, &$form_state) {
$options = array('available' => array(), 'converted' => array(), 'missing' => array());
$field_values = content_migrate_get_field_values();
if (empty($field_values)) {
drupal_set_message(t('There is no D6 field information in this database.'));
return $form;
......@@ -264,6 +263,7 @@ function _content_migrate_batch_process_migrate_data($field_name, &$context) {
->fields($node_alias, array('title', 'type'))
->fields('old_table', array('nid'))
->orderBy('nid', 'ASC')
->distinct()
->execute();
$nodes = array();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment