Skip to content
Code-Schnipsel Gruppen Projekte
Commit 5c932115 erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

fix: correctly parse quantity to int

Übergeordneter f340535c
Keine zugehörigen Branchen gefunden
Tags 2.5.0
2 Merge Requests!95fix: select dropdown for product type selection,!79Update 'next-3.x' with latest changes from 'main'
......@@ -46,7 +46,7 @@ function ($productId, $fields, $quantity) {
}
$Unique = $Product->createUniqueProduct(QUI::getUserBySession());
$Unique->setQuantity($quantity ?? 1);
$Unique->setQuantity(!empty($quantity) ? (float)$quantity : 1);
return $Unique->getView()->toArray();
},
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren