Skip to content

Commit

Permalink
Merge remote-tracking branch 'Stash/release/2.0' into release/2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
majiccode committed Dec 10, 2019
2 parents 2515182 + 676bce9 commit 361fca1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sdl.Web.Tridion.Templates.R2/Data/DefaultModelBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@ private EntityModelData GetEntityModelData(ComponentPresentation cp)
{
Id = $"{GetDxaIdentifier(cp.Component)}-{GetDxaIdentifier(ct)}"
};

// This property is internal so have to set it via reflection. This prevents the
// publishing package containing an empty DCP
childRenderedItem.GetType().GetProperty("IsRenderedCompletely")
.SetValue(childRenderedItem, false, null);
}
else
{
Expand Down

0 comments on commit 361fca1

Please sign in to comment.