Browse Source

[backend] Documents : pouvoir aller sur la page de modification d'un document validé

dev
Guillaume 4 years ago
parent
commit
f40a40ea08
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      backend/controllers/DocumentController.php

+ 0
- 4
backend/controllers/DocumentController.php View File

@@ -129,10 +129,6 @@ class DocumentController extends BackendController
throw new NotFoundHttpException('Le document n\'a pas été trouvé.');
}

if ($model->isStatusValid()) {
return $this->redirect(['download', 'id' => $id]) ;
}

if ($model && $model->load(Yii::$app->request->post()) && $model->save()) {
Yii::$app->getSession()->setFlash('success', $this->getFlashMessage('update', $model));
}

Loading…
Cancel
Save