Browse Source

Merge branch 'dev'

prodstable
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

'id_distribution' => $idDistribution, 'id_distribution' => $idDistribution,
'id_product' => $idProduct, 'id_product' => $idProduct,
]) ; ]) ;
$productDistribution->quantity_max = (int) $quantityMax ;
$productDistribution->quantity_max = (!$quantityMax) ? null : (int) $quantityMax ;
$productDistribution->save() ; $productDistribution->save() ;
return ['success'] ; return ['success'] ;

Loading…
Cancel
Save