Skip to content
Snippets Groups Projects
Commit 17f4dae2 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

import: re fix custom id

parent 3a746c79
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ class ImportAdminController extends Controller
$mappedCategories[$key] = $categoriesCreated[$categoryId];
} else {
$fieldName = $currentTaxonomyMapping[$originName]['fieldName'];
if (startsWith($fieldName, 'category_')) $fieldName = ltrim($fieldName, 'category_');
if (startsWith($fieldName, 'category_')) $fieldName = str_replace('category_', '', $fieldName);
if (array_key_exists($fieldName, $createdParent))
$parent = $createdParent[$fieldName];
else
......
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