diff --git a/CHANGELOG.md b/CHANGELOG.md index 458fc9e..0a151a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ Format : [Keep a Changelog](https://keepachangelog.com/fr/1.0.0/) — versionnag --- +## [1.6.11] - 2026-05-15 + +### Corrigé +- En mode édition, le slug de l'article n'est plus jamais modifié : suppression du `hidden[slug]` dans l'étape 6 de confirmation et du bloc qui le propagait dans le draft overlay + +--- + ## [1.6.10] - 2026-05-15 ### Corrigé diff --git a/public/index.php b/public/index.php index dd7674f..2e09070 100644 --- a/public/index.php +++ b/public/index.php @@ -985,10 +985,6 @@ switch ($action) { case 6: if ($_SERVER['REQUEST_METHOD'] === 'POST' && !empty($_POST['_confirm'])) { $revisionComment = trim($_POST['revision_comment'] ?? ''); - // Si le slug a été modifié dans le formulaire de confirmation, le propager - if (!empty($_POST['slug'])) { - $articles->saveDraftOverlay($uuid, ['slug' => trim($_POST['slug'])]); - } $articles->commitDraftOverlay($uuid, $revisionComment); $final = $articles->getByUuid($uuid); header('Location: /post/' . rawurlencode($final['slug'] ?? $uuid)); @@ -1001,7 +997,6 @@ switch ($action) { unset($_pd); $diffLines = lineDiff((string)($article['content'] ?? ''), (string)($draftData['content'] ?? '')); $titleChanged = ($draftData['title'] ?? '') !== ($article['title'] ?? ''); - $autoSlug = slugify($draftData['title'] ?? ''); $postSlug = $draftData['slug'] ?? $article['slug']; $changes = []; if ($titleChanged) { diff --git a/public/version.txt b/public/version.txt index 1df3b82..99c026b 100644 --- a/public/version.txt +++ b/public/version.txt @@ -1 +1 @@ -1.6.10 +1.6.11 diff --git a/templates/wizard/step6.php b/templates/wizard/step6.php index b39b0c8..10bb9d0 100644 --- a/templates/wizard/step6.php +++ b/templates/wizard/step6.php @@ -2,19 +2,17 @@ // Attendu (edit only) : $uuid, $step, $totalSteps, $mode='edit', $article (original), // $draftData, $diffLines, $changes, $autoRevisionComment, // $seoTitle, $seoDescription, $autoSeoDesc, $title (draft), $postSlug, -// $titleChanged, $autoSlug, $published, $published_at, $category +// $titleChanged, $published, $published_at, $category ob_start(); $_CONTEXT = 3; $_backUrl = '/edit/' . rawurlencode($uuid) . '/5'; $_formAction = '/edit/' . rawurlencode($uuid) . '/6'; -$_slugFinal = ($titleChanged && $autoSlug !== $postSlug) ? $autoSlug : $postSlug; ?>
-