From 00a6457b01928bdbb9cf897b8c63159a7228d4c3 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 8 Dec 2016 14:09:23 +0200 Subject: [PATCH] -Sms bug fixed --- controllers/OrderController.php | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/controllers/OrderController.php b/controllers/OrderController.php index 395c64b..9f10736 100755 --- a/controllers/OrderController.php +++ b/controllers/OrderController.php @@ -506,6 +506,9 @@ public function actionPublishOrder($id) { $model = Order::findOne($id); + if ($model->published == true) { + exit; + } $model->published = true; $model->save(); /** -- libgit2 0.21.4