Browse Source
Merge pull request #116 from yinchang0626/feature/fix_ProductAttributes_DisplayOrder
fix DisplayOrder of ProductAttribute and ProductAttributeOption when create Product
pull/119/head
Super
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductAppService.cs
|
|
|
@ -159,7 +159,7 @@ namespace EasyAbp.EShop.Products.Products |
|
|
|
} |
|
|
|
|
|
|
|
attribute = new ProductAttribute(GuidGenerator.Create(), |
|
|
|
attributeDto.DisplayName, attributeDto.Description); |
|
|
|
attributeDto.DisplayName, attributeDto.Description, attributeDto.DisplayOrder); |
|
|
|
|
|
|
|
product.ProductAttributes.Add(attribute); |
|
|
|
} |
|
|
|
@ -172,7 +172,7 @@ namespace EasyAbp.EShop.Products.Products |
|
|
|
if (option == null) |
|
|
|
{ |
|
|
|
option = new ProductAttributeOption(GuidGenerator.Create(), |
|
|
|
optionDto.DisplayName, optionDto.Description); |
|
|
|
optionDto.DisplayName, optionDto.Description, optionDto.DisplayOrder); |
|
|
|
|
|
|
|
attribute.ProductAttributeOptions.Add(option); |
|
|
|
} |
|
|
|
|