Skip to content

Commit

Permalink
Make sure we always get the parent of a template when dependency chec…
Browse files Browse the repository at this point in the history
…king.
  • Loading branch information
Kevin Jump committed Sep 13, 2019
1 parent 56b7263 commit 2dd9b92
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions uSync8.Core/Dependency/Checkers/TemplateChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ public IEnumerable<uSyncDependency> GetDependencies(ITemplate item, DependencyFl
Level = CalculateLevel(item)
});

if (flags.HasFlag(DependencyFlags.IncludeAncestors))
{
// always get the parents of a template??

// if (flags.HasFlag(DependencyFlags.IncludeAncestors))
// {
dependencies.AddRange(GetParents(item, DependencyOrders.Templates - 1, flags));
}
// }

if (flags.HasFlag(DependencyFlags.IncludeChildren))
{
Expand Down

0 comments on commit 2dd9b92

Please sign in to comment.