From 54ffc41d4684e9209e23a56a8f23ac3a413c4b7b Mon Sep 17 00:00:00 2001 From: Chris Rosenau Date: Sun, 9 Nov 2025 22:55:52 -0700 Subject: [PATCH] category changes --- resources/views/migration/index.blade.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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);