Skip to content

Commit

Permalink
Fixes IX_UrlRecord_Slug duplicate key violation when copying a prod…
Browse files Browse the repository at this point in the history
…uct if the localized name of two or more languages is identical #901

(cherry picked from commit 000e07c)
  • Loading branch information
mgesing authored and Michael-Herzog committed Jan 2, 2025
1 parent c0f2fd6 commit 10490e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ private async Task ProcessSlugs(Product product, Product clone, IEnumerable<Lang
{
string name = product.GetLocalized(x => x.Name, lang, false, false);

await _urlService.SaveSlugAsync(clone, string.Empty, name, false, lang.Id, true);
await _urlService.SaveSlugAsync(clone, string.Empty, name, false, lang.Id);
}
}

Expand Down

0 comments on commit 10490e4

Please sign in to comment.