Skip to content

Commit

Permalink
Merge pull request #1 from mausba/davorzlotrg-patch-1
Browse files Browse the repository at this point in the history
Bug fix when getting the tree by value
  • Loading branch information
davorzlotrg committed Oct 10, 2019
2 parents 4f01d4a + 37bd14c commit f84a73d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Merchello.Web/Search/ProductCollectionTreeQuery.cs
Expand Up @@ -38,7 +38,7 @@ public ProductCollectionTreeQuery(IMerchelloContext merchelloContext)
/// <inheritdoc/>
public TreeNode<IProductCollection> GetTreeByValue(IProductCollection value)
{
var cacheKey = GetCacheKey("GetTreeByValue");
var cacheKey = GetCacheKey("GetTreeByValue", value.Key);
var tree = (TreeNode<IProductCollection>)Cache.GetCacheItem(cacheKey);

if (tree != null) return tree;
Expand Down Expand Up @@ -76,4 +76,4 @@ public IEnumerable<TreeNode<IProductCollection>> GetRootTrees()
Cache.GetCacheItem(cacheKey, () => factory.BuildTrees(GetAll()));
}
}
}
}

0 comments on commit f84a73d

Please sign in to comment.