We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acc0f5f commit 8182fb0Copy full SHA for 8182fb0
src/Spe/Core/Host/ScriptSession.cs
@@ -832,7 +832,8 @@ public void SetItemLocationContext(Item item)
832
{
833
if (item == null) return;
834
835
- SetVariable("SitecoreContextItem", item);
+ var psObject = ItemShellExtensions.GetPsObject(Engine.SessionState, item);
836
+ SetVariable("SitecoreContextItem", psObject);
837
838
Engine.SessionState.Path.SetLocation(item.GetProviderPath());
839
}
@@ -854,7 +855,8 @@ public void SetItemContextFromLocation()
854
855
856
if (item != null)
857
858
859
860
return;
861
862
0 commit comments