This project is read-only.
1
Vote

Bug: DefaultFunctionCalculator does not honor Dimension

description

On line 89, the result is being queried without including the specified dimension, effectively getting the first result of any dimension available.

This causes trouble when attaching Nick's VotePart and ContentViewPart, for example.

Trouble code:
.Fetch(r => r.ContentItemRecord.Id == currentCalculus.ContentId && r.FunctionName == currentCalculus.FunctionName)
Good code:
.Fetch(r => r.ContentItemRecord.Id == currentCalculus.ContentId && r.Dimension == currentCalculus.Dimension && r.FunctionName == currentCalculus.FunctionName)

comments