Commit e77d39b3 authored by Sebastian Castro's avatar Sebastian Castro

Import Categories with space at beginning or the end

parent 80e039f1
v2.5.8
======
* BUG: Import Categories with space at beginning or the end
v2.5.7
======
* BUG: Prevent circular reference between categories and options
......
parameters:
app.version: 2.5.7
\ No newline at end of file
app.version: 2.5.8
\ No newline at end of file
......@@ -318,6 +318,7 @@ class ElementImportMappingService
foreach ($row['categories'] as $category)
{
$val = is_array($category) ? $category['name'] : $category;
$val = ltrim(rtrim($val));
if (isset($mapping[$val]) && $mapping[$val])
{
foreach ($mapping[$val] as $mappedCategory) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment