Skip to content
Snippets Groups Projects
Commit bd71821a authored by Chris Leppanen's avatar Chris Leppanen
Browse files

Issue #1884516 by aaronbauman: Import with taxonomy term mapping fails if term...

Issue #1884516 by aaronbauman: Import with taxonomy term mapping fails if term name exceeds db size.
parent 1181c4c1
No related branches found
No related tags found
No related merge requests found
......@@ -150,7 +150,7 @@ function taxonomy_feeds_set_target($source, $entity, $target, $terms, $mapping =
}
elseif ($mapping['autocreate'] && strlen(trim($term))) {
$term = (object) array(
'name' => drupal_substr(trim($term, 0, 255)),
'name' => drupal_substr(trim($term), 0, 255),
'vid' => key($cache['allowed_vocabularies'][$target]),
'vocabulary_machine_name' => reset($cache['allowed_vocabularies'][$target]),
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment