Skip to content

Commit

Permalink
Prepare 3.2.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
shopizer-ecommerce committed Sep 5, 2022
1 parent 48f4e5a commit 0bdf8ab
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 1,096 deletions.
2 changes: 1 addition & 1 deletion sm-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<dependency>
<groupId>com.shopizer</groupId>
<artifactId>shopizer-commons</artifactId>
<version>1.0.5-SNAPSHOT</version>
<version>1.0.5</version>
</dependency>

<!-- open search client -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public ReadableProduct merge(Product source, ReadableProduct destination, Mercha
Validate.notNull(source, "Product cannot be null");
Validate.notNull(destination, "Product destination cannot be null");


// read only product values
// will contain options
TreeMap<Long, ReadableProductOption> selectableOptions = new TreeMap<Long, ReadableProductOption>();
Expand Down Expand Up @@ -371,7 +372,7 @@ public ReadableProduct merge(Product source, ReadableProduct destination, Mercha

destination.setProductPrice(readableProductPrice);

if (pr.isPresent()) {
if (pr.isPresent() && language !=null) {
readableProductPrice.setId(pr.get().getId());
Optional<ProductPriceDescription> d = pr.get().getDescriptions().stream()
.filter(desc -> desc.getLanguage().getCode().equals(language.getCode()))
Expand Down

This file was deleted.

Loading

0 comments on commit 0bdf8ab

Please sign in to comment.