Some changes to related links to make sure peoples front end code will still work

This commit is contained in:
Tim Geyssens
2013-11-21 11:24:46 +01:00
parent b624d87a59
commit d0d1b2675d
2 changed files with 10 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Deployment.Internal;
using System.Dynamic;
using System.Linq;
using System.Text;
@@ -54,10 +55,12 @@ namespace Umbraco.Core.Persistence.Migrations.Upgrades.TargetVersionSeven
//create the links in the format the new prop editor expects it to be
var link = new ExpandoObject() as IDictionary<string, Object>;
link.Add("caption", title);
link.Add("link", type.Equals("internal") ? null : lnk);
link.Add("title", title);
link.Add("link", lnk);
link.Add("newWindow", newwindow);
link.Add("type", type.Equals("internal") ? "internal" : "external");
link.Add("internal", type.Equals("internal") ? lnk : null);
link.Add("edit", false);
link.Add("isInternal", type.Equals("internal"));