Skip to content
Snippets Groups Projects
Unverified Commit 1bf2d8a5 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Prevent dot inside taxonomy mapping keys

parent f0a2adc6
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,7 @@ class ElementImportMappingService
foreach($categories as $category) {
if (is_array($category)) $category = $category['name'];
$category = ltrim(rtrim($category));
$category = str_replace('.', '_', $category);
if (!in_array($category, $allNewCategories)) $allNewCategories[] = $category;
if ($category && !array_key_exists($category, $taxonomyMapping))
{
......
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