diff --git a/php/controller/updateArticle-controller.php b/php/controller/updateArticle-controller.php index 07a6f08..ecbf624 100644 --- a/php/controller/updateArticle-controller.php +++ b/php/controller/updateArticle-controller.php @@ -123,8 +123,8 @@ if ($_SERVER["REQUEST_METHOD"] === "POST") { $articleManager = ArticleManager::getInstance(); $article = $articleManager->getArticle($id); $article->setTitle($title); - $article->setContent($content); - $article->setCategory($finalContent); + $article->setContent($finalContent); + $article->setCategory($category); $article->setTags($cleanedTags); $articleManager->updateArticle($id ,$article, $author);