Merge pull request #16426 from josemariagomezroncero/patch-9

NEW Set status of all variant when setting status of parent
This commit is contained in:
Laurent Destailleur 2021-02-26 13:25:04 +01:00 committed by GitHub
commit 8aefb1b641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -488,6 +488,8 @@ class ProductCombination
$child->price_autogen = $parent->price_autogen;
$child->weight = $parent->weight;
$child->status = $parent->status;
if ($this->variation_weight) { // If we must add a delta on weight
$child->weight = ($child->weight ? $child->weight : 0) + $this->variation_weight;
}