Skip to content

Commit

Permalink
ECWID-147482: Custom URL slugs for catalog pages: Product and categor…
Browse files Browse the repository at this point in the history
…ies export/import in CSV: Custom slugs for categories is not filled after import: set up missing 'customSlug' property
  • Loading branch information
carlecwid committed Aug 26, 2024
1 parent 6651408 commit f4b62a6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ fun FetchedCategory.toUpdated(): UpdatedCategory {
seoDescription = seoDescription,
seoDescriptionTranslated = seoDescriptionTranslated,
alt = alt?.toUpdated(),
customSlug = customSlug,
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ data class UpdatedCategory(
val seoTitleTranslated: LocalizedValueMap? = null,
val seoDescription: String? = null,
val seoDescriptionTranslated: LocalizedValueMap? = null,
val alt: UpdatedAlt? = null
val alt: UpdatedAlt? = null,
val customSlug: String? = null,
) : ApiUpdatedDTO {

override fun getModifyKind() = ModifyKind.ReadWrite(FetchedCategory::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ data class FetchedCategory(
val seoTitleTranslated: LocalizedValueMap? = null,
val seoDescription: String? = null,
val seoDescriptionTranslated: LocalizedValueMap? = null,
val alt: FetchedAlt? = null
val alt: FetchedAlt? = null,
val customSlug: String? = null
) : ApiFetchedDTO, ApiResultDTO {

override fun getModifyKind() = ModifyKind.ReadWrite(UpdatedCategory::class)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ val fetchedCategoryNullablePropertyRules: List<NullablePropertyRule<*, *>> = lis
AllowNullable(FetchedCategory::seoDescription),
AllowNullable(FetchedCategory::seoDescriptionTranslated),
AllowNullable(FetchedCategory::alt),
AllowNullable(FetchedCategory::customSlug),
AllowNullable(FetchedAlt::main),
AllowNullable(FetchedAlt::translated),
)

0 comments on commit f4b62a6

Please sign in to comment.