Commit 5b353122643b36a6c9aa5e45e7761367ec8f84b8

Authored by Administrator
1 parent 5f629b84

image size

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
frontend/controllers/BasketController.php
... ... @@ -25,7 +25,8 @@ class BasketController extends Controller
25 25 return Yii::$app->response->redirect(['basket/index']);
26 26 }
27 27  
28   - if(isset($_POST['update'])){
  28 + if(isset($_POST['update']) && isset($_POST['ProductVariant'])){
  29 +
29 30 foreach ($_POST['ProductVariant'] as $index=>$row) {
30 31 $modelOrder->updateBasket($row);
31 32 }
... ...