From b0d03e7493f577bf53a60ac1822d0a87d2fe6be0 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Wed, 20 Aug 2014 15:16:39 +0200 Subject: [PATCH] Fixed #U4-5373 Also cleaned up code a little --- .../developer/Macros/editMacro.aspx.cs | 66 ++++++++----------- 1 file changed, 28 insertions(+), 38 deletions(-) diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Macros/editMacro.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Macros/editMacro.aspx.cs index 50fb8b912e..9dde8ec59f 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Macros/editMacro.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/developer/Macros/editMacro.aspx.cs @@ -27,8 +27,8 @@ namespace umbraco.cms.presentation.developer CurrentApp = BusinessLogic.DefaultApps.developer.ToString(); } - protected PlaceHolder buttons; - protected Table macroElements; + protected PlaceHolder Buttons; + protected Table MacroElements; public TabPage InfoTabPage; public TabPage Parameters; @@ -43,7 +43,7 @@ namespace umbraco.cms.presentation.developer { ClientTools .SetActiveTreeType(TreeDefinitionCollection.Instance.FindTree().Tree.Alias) - .SyncTree("-1,init," + _macro.Id.ToString(), false); + .SyncTree("-1,init," + _macro.Id, false); string tempMacroAssembly = _macro.ControlAssembly ?? ""; string tempMacroType = _macro.ControlType ?? ""; @@ -51,7 +51,7 @@ namespace umbraco.cms.presentation.developer PopulateFieldsOnLoad(_macro, tempMacroAssembly, tempMacroType); // Check for assemblyBrowser - if (tempMacroType.IndexOf(".ascx") > 0) + if (tempMacroType.IndexOf(".ascx", StringComparison.Ordinal) > 0) assemblyBrowserUserControl.Controls.Add( new LiteralControl("