From 94b9b80c6e4ea87b2cad2cb929ba758ccd82799b Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 4 Dec 2017 15:48:19 +0200 Subject: [PATCH] -Prettyfied and bug removed --- models/OrderProduct.php | 3 ++- views/order/_form.php | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/models/OrderProduct.php b/models/OrderProduct.php index 28f3261..7e14a6e 100755 --- a/models/OrderProduct.php +++ b/models/OrderProduct.php @@ -149,7 +149,8 @@ foreach ($orderProducts as $orderProduct) { if ($orderProduct->variant_id == $id) { $orderProduct->count = $count; - break 2; + + continue 2; } } /** diff --git a/views/order/_form.php b/views/order/_form.php index a236734..09d40aa 100755 --- a/views/order/_form.php +++ b/views/order/_form.php @@ -57,6 +57,8 @@ field($model, 'payment_id') ->dropDownList($payments) ?> +
+
@@ -118,7 +120,8 @@ ?>
-
+
+