Browse Source

[Administration] Distribution > Erreur 500 : updateProductDistributionQuantityMax #1206

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
408db79ce9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/controllers/DistributionController.php

+ 1
- 1
backend/controllers/DistributionController.php View File

@@ -599,7 +599,7 @@ class DistributionController extends BackendController
\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
$productDistributionManager = $this->getProductDistributionManager();
$productDistribution = $this->getProductDistribution($idProduct, $idDistribution);
$productDistributionManager->updateProductDistributionQuantityMax($productDistribution, $quantityMax);
$productDistributionManager->updateProductDistributionQuantityMax($productDistribution, (float) $quantityMax);
return ['success'];
}


Loading…
Cancel
Save