diff --git a/Composite/C1Console/Trees/Foundation/AttachmentPoints/DynamicDataItemAttachmentPoint.cs b/Composite/C1Console/Trees/Foundation/AttachmentPoints/DynamicDataItemAttachmentPoint.cs index f93b3d8ac7..e2cb0ad510 100644 --- a/Composite/C1Console/Trees/Foundation/AttachmentPoints/DynamicDataItemAttachmentPoint.cs +++ b/Composite/C1Console/Trees/Foundation/AttachmentPoints/DynamicDataItemAttachmentPoint.cs @@ -2,11 +2,11 @@ using System.Collections.Generic; using System.Diagnostics; using System.Globalization; +using System.Linq; using Composite.Data; using Composite.C1Console.Security; using Composite.Data.ProcessControlled; - namespace Composite.C1Console.Trees.Foundation.AttachmentPoints { /// @@ -69,7 +69,7 @@ public override IEnumerable GetEntityTokens(EntityToken childEntity private EntityToken GetEntityTokensImpl() { - IData data = DataFacade.TryGetDataByUniqueKey(this.InterfaceType, KeyValue); + IData data = DataFacade.TryGetDataVersionsByUniqueKey(this.InterfaceType, KeyValue).FirstOrDefault(); return data == null ? null : data.GetDataEntityToken(); }