From 636cefaa6992dfe528dccfd02b2aff35ca3b15dd Mon Sep 17 00:00:00 2001 From: Thomas Fransolet Date: Sun, 23 May 2021 15:44:07 +0200 Subject: [PATCH] Fix save subsection --- ManagerService/Controllers/SectionController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ManagerService/Controllers/SectionController.cs b/ManagerService/Controllers/SectionController.cs index 13407cc..57ec11d 100644 --- a/ManagerService/Controllers/SectionController.cs +++ b/ManagerService/Controllers/SectionController.cs @@ -226,8 +226,8 @@ namespace ManagerService.Controllers section.ImageId = newSection.ImageId; section.ConfigurationId = newSection.ConfigurationId; section.DateCreation = DateTime.Now; - section.IsSubSection = false; - section.ParentId = null; + section.IsSubSection = newSection.IsSubSection; + section.ParentId = newSection.ParentId; section.Type = newSection.Type; section.Title = new List(); section.Description = new List();