Merge branch '9-undef-var-newqtyavailable' into 'develop'
fix: 🐛 undefined newQtyAvailable when panier content quantity is zero
See merge request ldc-web/projets/mesbr!21
This commit is contained in:
commit
0db1b77bf6
1 changed files with 5 additions and 4 deletions
|
|
@ -250,12 +250,13 @@ class AjaxController extends Controller
|
|||
|
||||
// Sauvegarde de stat
|
||||
$this->saveStat($campagne, $cp);
|
||||
|
||||
// ---- Mémorise l'impression
|
||||
$panierContent->panier_content_quantity = $newQtyAvailable;
|
||||
$panierContent->panier_content_printed = $newQtyPrinted;
|
||||
$panierContent->save();
|
||||
}
|
||||
array_push($couponsPrinted, ['cp_code' => $cp->coupon_code, 'qty' => 1]);
|
||||
// ---- Mémorise l'impression
|
||||
$panierContent->panier_content_quantity = $newQtyAvailable;
|
||||
$panierContent->panier_content_printed = $newQtyPrinted;
|
||||
$panierContent->save();
|
||||
}//end if
|
||||
}//end foreach
|
||||
// ---- Update du status du panier
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue