From 1181c4c10e8654220881c44111ac9848ddfdd8b1 Mon Sep 17 00:00:00 2001 From: Chris Leppanen <chris.leppanen@gmail.com> Date: Thu, 30 Jan 2014 13:29:28 -0500 Subject: [PATCH] Issue #1884516 by aaronbauman: Import with taxonomy term mapping fails if term name exceeds db size. --- mappers/taxonomy.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mappers/taxonomy.inc b/mappers/taxonomy.inc index e54cc372..7ec543cb 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]), ); -- GitLab