Commit 527c297d7cc7ce5640750962671aa5a1efc636b4

Authored by Yarik
1 parent 6aead4dd

Synonym shit fix

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
common/modules/product/models/Product.php
@@ -337,10 +337,10 @@ @@ -337,10 +337,10 @@
337 ) 337 )
338 ->one(); 338 ->one();
339 if ($taxOption) { 339 if ($taxOption) {
340 - if (!empty( $taxOption->synonym )) { 340 + if (!empty( $taxOption->value->synonym )) {
341 $taxOption = $taxOption->synonym; 341 $taxOption = $taxOption->synonym;
342 } else { 342 } else {
343 - $taxOption = $taxOption->value; 343 + $taxOption = $taxOption->value->value;
344 } 344 }
345 $name .= $taxOption; 345 $name .= $taxOption;
346 } else { 346 } else {