Skip to content
Snippets Groups Projects
Commit 408dec28 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 b241aa75
No related branches found
No related tags found
No related merge requests found
Pipeline #192806 passed with warnings
......@@ -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