diff --git a/mappers/taxonomy.inc b/mappers/taxonomy.inc index e54cc3721a4309b6325a9364014903d7159f80a4..7ec543cbb5266aaa40433c877d2807cb58aa4e41 100644 --- a/mappers/taxonomy.inc +++ b/mappers/taxonomy.inc @@ -150,7 +150,7 @@ function taxonomy_feeds_set_target($source, $entity, $target, $terms, $mapping = } elseif ($mapping['autocreate'] && strlen(trim($term))) { $term = (object) array( - 'name' => $term, + 'name' => drupal_substr(trim($term, 0, 255)), 'vid' => key($cache['allowed_vocabularies'][$target]), 'vocabulary_machine_name' => reset($cache['allowed_vocabularies'][$target]), );