diff options
author | polo <ordipolo@gmx.fr> | 2025-09-09 15:37:50 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-09-09 15:37:50 +0200 |
commit | 5e41bea598ff38b3c520b69fd92ee3412e716df2 (patch) | |
tree | b4b57a7201db1efe484446383042f9a43fd2deff /src/controller/PageManagementController.php | |
parent | c5d9df5c42b5d2522e2a06b5f40422c1bbf497ab (diff) | |
download | cms-5e41bea598ff38b3c520b69fd92ee3412e716df2.zip |
fin de l'utilisation du champ article_timestamp de la table node, résolue erreur lorsque deux news sont créées dans la même minute (pas dans la même seconde par contre)
Diffstat (limited to 'src/controller/PageManagementController.php')
-rw-r--r-- | src/controller/PageManagementController.php | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/controller/PageManagementController.php b/src/controller/PageManagementController.php index 75967eb..3d7edde 100644 --- a/src/controller/PageManagementController.php +++ b/src/controller/PageManagementController.php | |||
@@ -79,9 +79,7 @@ class PageManagementController | |||
79 | $page->setPagePath(ltrim($parent->getPagePath() . '/' . $page->getEndOfPath(), '/')); | 79 | $page->setPagePath(ltrim($parent->getPagePath() . '/' . $page->getEndOfPath(), '/')); |
80 | 80 | ||
81 | // noeud "head" | 81 | // noeud "head" |
82 | $node = new Node( | 82 | $node = new Node('head', [], |
83 | 'head', | ||
84 | null, [], | ||
85 | 1, // position d'un head = 1 | 83 | 1, // position d'un head = 1 |
86 | null, // pas de parent | 84 | null, // pas de parent |
87 | $page); | 85 | $page); |
@@ -163,12 +161,7 @@ class PageManagementController | |||
163 | $entityManager->persist($bulk_data[0]); | 161 | $entityManager->persist($bulk_data[0]); |
164 | } | 162 | } |
165 | 163 | ||
166 | $block = new Node( | 164 | $block = new Node($_POST["bloc_select"], [], $position, $main, $page); |
167 | $_POST["bloc_select"], | ||
168 | null, [], | ||
169 | $position, | ||
170 | $main, | ||
171 | $page); | ||
172 | $data = new NodeData( | 165 | $data = new NodeData( |
173 | ['title' => trim(htmlspecialchars($_POST["bloc_title"]))], | 166 | ['title' => trim(htmlspecialchars($_POST["bloc_title"]))], |
174 | $block); | 167 | $block); |