diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/translation/details.aspx.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/translation/details.aspx.cs index b8968d4329..d4ae4a8587 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/translation/details.aspx.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/translation/details.aspx.cs @@ -84,17 +84,19 @@ namespace umbraco.presentation.umbraco.translation { pageRow[ui.Text("name")] = ui.Text("nodeName"); pageRow[ui.Text("value")] = page.Text; pageTable.Rows.Add(pageRow); - - foreach (PropertyType pt in page.ContentType.PropertyTypes) { + + foreach (PropertyType pt in page.ContentType.PropertyTypes) + { pageRow = pageTable.NewRow(); pageRow[ui.Text("name")] = pt.Name; - if (page.getProperty(pt.Alias) != null && page.getProperty(pt.Alias).Value != null) + var property = page.getProperty(pt.Alias); + if (property != null && property.Value != null) { - pageRow[ui.Text("value")] = page.getProperty(pt.Alias).Value; + pageRow[ui.Text("value")] = property.Value; } pageTable.Rows.Add(pageRow); } - + dg_fields.DataSource = pageTable; dg_fields.DataBind(); }