From 7cb955e2733705649c93074f22aff2c90c0716d1 Mon Sep 17 00:00:00 2001 From: Taras Nakonechnyi Date: Wed, 7 Aug 2024 10:59:50 +0300 Subject: [PATCH] Bug 79302: Navigation Folder removed in C1 (#840) --- Composite/Data/Types/PageServices.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Composite/Data/Types/PageServices.cs b/Composite/Data/Types/PageServices.cs index 4d58f1afc..e2f66ff6b 100644 --- a/Composite/Data/Types/PageServices.cs +++ b/Composite/Data/Types/PageServices.cs @@ -699,7 +699,8 @@ public static void DeletePage(Guid pageId, Guid versionId, CultureInfo locale, b if (pageToDelete != null) { - DataFacade.Delete(pageToDelete); + // References should be retained if another version of the page exists; hence, the use of CascadeDeleteType.Disable is justified. + DataFacade.Delete(pageToDelete, CascadeDeleteType.Disable); } } }