diff --git a/canapEPFL/configs/db.template.php b/canapEPFL/configs/db.template.php
index f5a297d313372597880deab60dc10b2ff38bc9c9..a6ea9bffc8243167f6b844e180f20472b446aaef 100644
--- a/canapEPFL/configs/db.template.php
+++ b/canapEPFL/configs/db.template.php
@@ -3,4 +3,8 @@
   $db_user = '';
   $db_pass = '';
   $pdo = new PDO('mysql:host=localhost;dbname=canap_dev', $db_user, $db_pass);
+  $pdo->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC);
+
+  // for dev
+  // $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
 ?>
\ No newline at end of file
diff --git a/canapEPFL/helpers.php b/canapEPFL/helpers.php
index f4edc19a8acaa75a3121563e0af61f4b0e55a070..afef05dd5fc0fc356b4af58b7ddc3618c2780171 100644
--- a/canapEPFL/helpers.php
+++ b/canapEPFL/helpers.php
@@ -337,6 +337,7 @@ function deletePostulation ($pdo, $id, $sciper, $rep1, $rep2) {
   $query->execute();
 
   // TODO: Delete files on server ?
+  header('Location: viewpostulation.php');
 }
 #endregion
 ?>
\ No newline at end of file