Skip to content
Snippets Groups Projects
Commit 6552275c authored by Andy Giles's avatar Andy Giles Committed by Jonathan Sacksick
Browse files

Issue #3452555 by andyg5000: Layout builder and products with no variations...

Issue #3452555 by andyg5000: Layout builder and products with no variations shouldn't generate sample values
parent 4b64abcd
No related branches found
No related tags found
6 merge requests!379Issue #3491248 Validation is breaking the amount number format decimal point,!375Issue #3413020 by czigor: Using a translatable string as a category for field...,!357Issue #2914933: Add service tags to order-related interfaces,!344Resolve #3107602 "Product attributes do not update visually when switching variations",!343Resolve #3107602 "Product attributes do not update visually when switching variations",!342Issue #3476581 by josephr5000: add OrderItemLabelEvent
Pipeline #192805 failed
......@@ -143,7 +143,7 @@ class ProductVariationContext implements ContextProviderInterface {
}
if (!($value instanceof ProductVariationInterface)) {
if ($this->sampleEntityGenerator) {
if ($this->sampleEntityGenerator && !empty($layout_page)) {
$value = $this->sampleEntityGenerator->get('commerce_product_variation', reset($variation_types));
}
else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment