aboutsummaryrefslogtreecommitdiff
path: root/src/controller/PageManagementController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller/PageManagementController.php')
-rw-r--r--src/controller/PageManagementController.php11
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);