|
@@ 70-74 (lines=5) @@
|
| 67 |
|
throw new NotFoundHttpException; |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
if (true === Yii::$app->request->isPost) { |
| 71 |
|
if ($model->load(Yii::$app->request->post()) && $model->save()) { |
| 72 |
|
return $this->redirect(Url::toRoute(['view', 'id' => $model->id])); |
| 73 |
|
} |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
return $this->render('edit', [ |
| 77 |
|
'review' => $model |
|
@@ 223-229 (lines=7) @@
|
| 220 |
|
$model->submission_id = $parent->submission_id; |
| 221 |
|
} |
| 222 |
|
|
| 223 |
|
if (true === Yii::$app->request->isPost) { |
| 224 |
|
if ($model->load(Yii::$app->request->post()) && $model->save()) { |
| 225 |
|
return $this->redirect(Url::toRoute(['view', 'id' => $model->id])); |
| 226 |
|
} else { |
| 227 |
|
// @todo add alert and may be something else here |
| 228 |
|
} |
| 229 |
|
} |
| 230 |
|
|
| 231 |
|
return $this->render('edit', [ |
| 232 |
|
'review' => $model |