Commit 00a6457b01928bdbb9cf897b8c63159a7228d4c3
1 parent
793ad526
-Sms bug fixed
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
controllers/OrderController.php
@@ -506,6 +506,9 @@ | @@ -506,6 +506,9 @@ | ||
506 | public function actionPublishOrder($id) | 506 | public function actionPublishOrder($id) |
507 | { | 507 | { |
508 | $model = Order::findOne($id); | 508 | $model = Order::findOne($id); |
509 | + if ($model->published == true) { | ||
510 | + exit; | ||
511 | + } | ||
509 | $model->published = true; | 512 | $model->published = true; |
510 | $model->save(); | 513 | $model->save(); |
511 | /** | 514 | /** |