diff options
| author | polo <ordipolo@gmx.fr> | 2025-10-09 14:40:54 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-10-09 14:40:54 +0200 |
| commit | f0d1cd5d68579b462cf01a4a9f7d558a231bc072 (patch) | |
| tree | 2769cef714275d86781a46c2d1f1a8981e3b4bcf /src/controller/ArticleController.php | |
| parent | 44f4110d53f58086b17d17afe81b0da0978d2a29 (diff) | |
| download | cms-f0d1cd5d68579b462cf01a4a9f7d558a231bc072.tar.gz cms-f0d1cd5d68579b462cf01a4a9f7d558a231bc072.tar.bz2 cms-f0d1cd5d68579b462cf01a4a9f7d558a231bc072.zip | |
description de page déplacée dans la table page
Diffstat (limited to 'src/controller/ArticleController.php')
| -rw-r--r-- | src/controller/ArticleController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controller/ArticleController.php b/src/controller/ArticleController.php index 8bbef19..fabd997 100644 --- a/src/controller/ArticleController.php +++ b/src/controller/ArticleController.php | |||
| @@ -151,10 +151,10 @@ class ArticleController | |||
| 151 | die; | 151 | die; |
| 152 | } | 152 | } |
| 153 | 153 | ||
| 154 | static public function deleteArticle(EntityManager $entityManager, array $json): Response | 154 | static public function deleteArticle(EntityManager $entityManager, array $data): Response // $data peut être un $_GET ou du JSON |
| 155 | { | 155 | { |
| 156 | $director = new Director($entityManager); | 156 | $director = new Director($entityManager); |
| 157 | if(!$director->makeArticleNode($json['id'], true)){ | 157 | if(!$director->makeArticleNode($data['id'], true)){ |
| 158 | return new Response( | 158 | return new Response( |
| 159 | '{"success": false, "message": "Erreur: pas d\'article à supprimer"}', | 159 | '{"success": false, "message": "Erreur: pas d\'article à supprimer"}', |
| 160 | Response::HTTP_INTERNAL_SERVER_ERROR); // 500 | 160 | Response::HTTP_INTERNAL_SERVER_ERROR); // 500 |
