diff --git a/src/Component/Frontend/StructureModal/StructureModal.php b/src/Component/Frontend/StructureModal/StructureModal.php index 262c11b..5e90776 100644 --- a/src/Component/Frontend/StructureModal/StructureModal.php +++ b/src/Component/Frontend/StructureModal/StructureModal.php @@ -357,6 +357,7 @@ public function successNoFile(Form $form) : void { $recipeSlug = $this->getRecipeSlug(); $structure = $this->getStructure(); + $parentStructure = $structure ? $structure->getParent() : NULL; $noFileVariables = $this->getNoFileVariables(); $this->structureManager->getConnection()->beginTransaction(); @@ -366,7 +367,8 @@ public function successNoFile(Form $form) : void $structure = $this->structureManager->save( $structure, $recipeSlug, - $this->user + $this->user, + $parentStructure ); $this->structureValueManager->saveNoFileFields(