Skip to content

Commit

Permalink
Fixed issue #11 Need to provide an entity key as the umbraco table di…
Browse files Browse the repository at this point in the history
…rective does a comparison to see if an item is already selected.
  • Loading branch information
mattbrailsford committed Jan 11, 2018
1 parent ccf7356 commit 4377b4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Fluidity/Web/Models/FluidityEntityBasicModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// </copyright>

using System.Runtime.Serialization;
using Fluidity.Extensions;

namespace Fluidity.Web.Models
{
Expand All @@ -13,6 +14,9 @@ public class FluidityEntityBasicModel
[DataMember(Name = "id", IsRequired = true)]
public object Id { get; set; }

[DataMember(Name = "key")]
public object Key => Id?.EncodeAsGuid();

// Currently hard coding parent id as nuPickers requires passing
// a parent id into it's functions even though it may not be used.
[DataMember(Name = "parentId")]
Expand Down

0 comments on commit 4377b4b

Please sign in to comment.