diff --git a/resources/views/migration/index.blade.php b/resources/views/migration/index.blade.php index a8a9394..e475d95 100644 --- a/resources/views/migration/index.blade.php +++ b/resources/views/migration/index.blade.php @@ -796,6 +796,7 @@ Status Root Category Path + Actions @@ -820,6 +821,14 @@ @endif {{ $category->path ?? 'N/A' }} + + + @endforeach @@ -2247,6 +2256,12 @@ function refreshM2CategoriesNotInM1() { rootCategoryHtml = 'N/A'; } + // Escape category name for use in JavaScript string + const categoryNameEscaped = (category.name || 'Unnamed Category') + .replace(/\\/g, '\\\\') + .replace(/'/g, "\\'") + .replace(/"/g, '\\"'); + row.innerHTML = ` ${category.entity_id} ${category.name || 'Unnamed Category'} @@ -2256,6 +2271,14 @@ function refreshM2CategoriesNotInM1() { ${rootCategoryHtml} ${category.path || 'N/A'} + + + `; tbody.appendChild(row);