From 438dedd1ab74cc7e4bebf9593a9b241f9f2eda3e Mon Sep 17 00:00:00 2001
From: Claus
Date: Tue, 25 Aug 2015 11:26:43 +0200
Subject: [PATCH] Fixes: U4-6997 Updating Public Access settings on a node
should trigger a re-render of the tree.
For some reason the ReloadActionNode does not work in this case. Updated to using SyncTree which works.
---
.../umbraco/dialogs/protectPage.aspx.cs | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/protectPage.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/protectPage.aspx.cs
index ab88df2b4a..3cf3e7ad64 100644
--- a/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/protectPage.aspx.cs
+++ b/src/Umbraco.Web/umbraco.presentation/umbraco/dialogs/protectPage.aspx.cs
@@ -12,6 +12,7 @@ using umbraco.cms.businesslogic.web;
using umbraco.controls;
using umbraco.cms.helpers;
using umbraco.BasePages;
+using Umbraco.Core.Persistence;
using Umbraco.Core.Security;
namespace umbraco.presentation.umbraco.dialogs
@@ -262,8 +263,9 @@ namespace umbraco.presentation.umbraco.dialogs
p_buttons.Visible = false;
pane_advanced.Visible = false;
pane_simple.Visible = false;
-
- ClientTools.ReloadActionNode(true, false);
+
+ var content = ApplicationContext.Current.Services.ContentService.GetById(pageId);
+ ClientTools.SyncTree(content.Path, true);
feedback.type = global::umbraco.uicontrols.Feedback.feedbacktype.success;
}
@@ -281,7 +283,8 @@ namespace umbraco.presentation.umbraco.dialogs
feedback.Text = ui.Text("publicAccess", "paIsRemoved", new cms.businesslogic.CMSNode(pageId).Text) + "
" + ui.Text("closeThisWindow") + "";
- ClientTools.ReloadActionNode(true, false);
+ var content = ApplicationContext.Current.Services.ContentService.GetById(pageId);
+ ClientTools.SyncTree(content.Path, true);
feedback.type = global::umbraco.uicontrols.Feedback.feedbacktype.success;
}