Browse Source

Merge branch 'dev'

master
Guillaume Bourgeois 5 years ago
parent
commit
3fe8fac174
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      backend/controllers/DistributionController.php

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

@@ -357,7 +357,9 @@ class DistributionController extends BackendController
'id_distribution' => $idDistribution,
'id_product' => $idProduct,
]) ;
$productDistribution->quantity_max = (int) $quantityMax ;
$productDistribution->quantity_max = (!$quantityMax) ? null : (int) $quantityMax ;
$productDistribution->save() ;
return ['success'] ;

Loading…
Cancel
Save