Browse Source

Remove unexpected "\r" char postfixes

pull/226/head
gdlcf88 3 years ago
parent
commit
2479d29315
  1. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/ProductsWebAutoMapperProfile.cs

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Web/ProductsWebAutoMapperProfile.cs

@ -46,7 +46,7 @@ namespace EasyAbp.EShop.Products.Web
ProductAttributeOptions = new List<CreateUpdateProductAttributeOptionDto>(
x.ProductAttributeOptionNames.SplitToLines(StringSplitOptions.RemoveEmptyEntries)[i]
.Split(",", StringSplitOptions.RemoveEmptyEntries).Select(o =>
new CreateUpdateProductAttributeOptionDto {DisplayName = o}))
new CreateUpdateProductAttributeOptionDto {DisplayName = o.RemovePostFix("\r")}))
})));
CreateMap<ProductDetailDto, CreateEditProductDetailViewModel>();
CreateMap<CreateEditProductDetailViewModel, CreateUpdateProductDetailDto>()

Loading…
Cancel
Save