Skip to content

Commit

Permalink
Merge remote-tracking branch 'Stash/release/2.2' into release/2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
majiccode committed Dec 10, 2019
2 parents 9d48fa1 + 4d015f3 commit 282af37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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 @@ -516,6 +516,11 @@ private EntityModelData GetEntityModelData(ComponentPresentation cp)
Id = $"{GetDxaIdentifier(cp.Component)}-{GetDxaIdentifier(ct)}",
Namespace = GetNamespace(cp.Component)
};

// 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
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ public void CreatePageModel_WithTargetGroupConditions_Success() // See TSI-2844
Condition[] targetGroupConditions = targetGroupConditionsValue as Condition[];
Assert.IsNotNull(targetGroupConditions, "targetGroupConditions");
Assert.AreEqual(1, targetGroupConditions.Length, "targetGroupConditions.Length");
TrackingKeyCondition trackingKeyCondition = targetGroupConditions[0] as TrackingKeyCondition;
TargetGroupCondition targetGroupCondition = targetGroupConditions[0] as TargetGroupCondition;
TrackingKeyCondition trackingKeyCondition = targetGroupCondition.TargetGroup.Conditions[0] as TrackingKeyCondition;
Assert.IsNotNull(trackingKeyCondition, "trackingKeyCondition");
Assert.AreEqual("Test Keyword 2", trackingKeyCondition.TrackingKeyTitle, "trackingKeyCondition.TrackingKeyTitle");
Assert.AreEqual(ConditionOperator.Equals, trackingKeyCondition.Operator, "trackingKeyCondition.Operator");
Expand Down

0 comments on commit 282af37

Please sign in to comment.