Commit a564727347d7ab71ecd6f33dce275db5171ffda0
1 parent
708098c0
bug fix artbox-order
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
controllers/OrderController.php
... | ... | @@ -212,7 +212,7 @@ |
212 | 212 | { |
213 | 213 | $model = $this->findModel($id); |
214 | 214 | |
215 | - if ($model->load(Yii::$app->request->post()) && $model->save()) { | |
215 | + if ($model->load(Yii::$app->request->post()) && $model->save() && !empty(\Yii::$app->request->post('OrderProduct'))) { | |
216 | 216 | OrderProduct::saveItems(\Yii::$app->request->post('OrderProduct'), $id); |
217 | 217 | return $this->redirect( |
218 | 218 | [ | ... | ... |