Skip to content

Commit

Permalink
Merge pull request #217 from Orckestra/fix-bugs
Browse files Browse the repository at this point in the history
Fixing issue where EntityToken creation fail for page with 2+ versions
  • Loading branch information
Marcus Wendt authored Sep 5, 2016
2 parents e283850 + b7046e9 commit 26adb1d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
/// <summary>
Expand Down Expand Up @@ -69,7 +69,7 @@ public override IEnumerable<EntityToken> 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();
}

Expand Down

0 comments on commit 26adb1d

Please sign in to comment.