From 8e52d99ba42874a69e9d73539e42c27292eb5cbe Mon Sep 17 00:00:00 2001 From: NOrtmann1 Date: Sun, 14 Jun 2026 21:42:58 +0200 Subject: [PATCH] Update updateArticle-controller.php --- php/controller/updateArticle-controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);