Skip to content

Commit

Permalink
remove go back to avoid void targets -> redirect to home screen
Browse files Browse the repository at this point in the history
  • Loading branch information
eluhr committed Jan 30, 2024
1 parent 3b4b63a commit 5d9faae
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/generators/crud/default/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ public function actionDelete(<?= $actionParams ?>)
$this->findModel(<?= $actionParams ?>)->delete();
} catch (\Exception $e) {
Yii::$app->getSession()->addFlash('error', $e->errorInfo[2] ?? $e->getMessage());
return $this->goBack();
}

return $this->redirect(['index']);
Expand Down

0 comments on commit 5d9faae

Please sign in to comment.