correcting list delete (delete task from this list as well)

action&exception
Anna BOUDOUL 2 years ago
parent 27e7cfa63f
commit 9b27bb4b11

@ -45,7 +45,8 @@ class TaskGateway
if($table == 'task'){ if($table == 'task'){
$query='DELETE FROM Tache WHERE id = :id'; $query='DELETE FROM Tache WHERE id = :id';
} else { } else {
$query='DELETE FROM uList WHERE id = :id'; $query='DELETE FROM uList WHERE id = :id;
DELETE FROM Tache WHERE idList = :id;';
} }
$this->con->executeQuery($query, array( $this->con->executeQuery($query, array(
':id'=>array($id,PDO::PARAM_STR))); ':id'=>array($id,PDO::PARAM_STR)));

Loading…
Cancel
Save