diff --git a/Vues/modifyTask.php b/Vues/modifyTask.php index a78d16e..8741df9 100644 --- a/Vues/modifyTask.php +++ b/Vues/modifyTask.php @@ -17,25 +17,40 @@
diff --git a/gateway/TacheGateway.php b/gateway/TacheGateway.php index db98c00..a25578d 100644 --- a/gateway/TacheGateway.php +++ b/gateway/TacheGateway.php @@ -49,9 +49,9 @@ class TacheGateway $query = "SELECT * FROM Tache WHERE id=:id"; $this->con->executeQuery($query, array(':id' => array($id, PDO::PARAM_STR))); - $results=$con->getResults(); + $results=$this->con->getResults(); foreach ($results as $row ) { - $tache=new Tache($row['id'], $row['name'], $row['content']); + $tache=new Tache($row['id'], $row['name'], $row['content'], $row['completed']); } return $tache;