|
@@ 77-81 (lines=5) @@
|
| 74 |
|
throw new NotFoundHttpException; |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
if (true === Yii::$app->request->isPost) { |
| 78 |
|
if ($model->load(Yii::$app->request->post()) && $model->save()) { |
| 79 |
|
return $this->redirect(Url::toRoute(['view', 'id' => $model->id])); |
| 80 |
|
} |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
return $this->render('edit', [ |
| 84 |
|
'review' => $model |
|
@@ 230-236 (lines=7) @@
|
| 227 |
|
$model->submission_id = $parent->submission_id; |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
if (true === Yii::$app->request->isPost) { |
| 231 |
|
if ($model->load(Yii::$app->request->post()) && $model->save()) { |
| 232 |
|
return $this->redirect(Url::toRoute(['view', 'id' => $model->id])); |
| 233 |
|
} else { |
| 234 |
|
// @todo add alert and may be something else here |
| 235 |
|
} |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
return $this->render('edit', [ |
| 239 |
|
'review' => $model |