This commit is contained in:
Ludovic CANDELLIER
2021-11-07 19:58:38 +01:00
parent c7c8e18cbc
commit 63c6671c97
22 changed files with 143 additions and 48 deletions

View File

@@ -33,7 +33,7 @@ class Variations
public static function getName($variation)
{
return $variation->package->value . ' ' . $variation->quantity . ' ' . $variation->unity->value;
return $variation->package->value . ' ' . $variation->quantity . ' ' . ($variation->unity->value ?? null);
}
public static function buildName($data)