From c446be734c6e12cf8f7e259a0865ce9d4165015d Mon Sep 17 00:00:00 2001 From: "ksykora@ksykora-Win7" Date: Wed, 21 Nov 2012 07:54:17 -0100 Subject: [PATCH] Moved ParseMacros from Init into Load in ItemRenderer to fix an issue where the NodeId property on the Item control was being set after the ItemRenderer had already loaded it into memory. --- .../umbraco/templateControls/ItemRenderer.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs index 8ef29fbb15..de2149b1c4 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/templateControls/ItemRenderer.cs @@ -143,16 +143,16 @@ namespace umbraco.presentation.templateControls /// /// The item. public virtual void Init(Item item) - { - ParseMacros(item); - } + { } /// /// Loads the specified item. To be called from the OnLoad method of Item. /// /// The item. public virtual void Load(Item item) - { } + { + ParseMacros(item); + } /// /// Parses the macros inside the text, by creating child elements for each item.