When using the row and column aggregate options, the aggregates are sometimes rendered incorrectly resulting in no values being shown.

For example, I have the pivot values as a sum of the raw data and then have specified 'sum of values' for both rows and columns to calculate totals. In one view, this works correctly but in another (using a different field) the totals are blank.

The total is being calculated correctly but the $aggregate object passed to $field_handler->render does not have the calculated value assigned to the right property.

The attached patch fixes the issue.

CommentFileSizeAuthor
views_pivot-aggregate-fix.patch823 bytesayduns

Comments

ayduns created an issue. See original summary.

ayduns’s picture

Issue summary: View changes

  • jurgenhaas committed 9f22f8e on 7.x-1.x
    Issue #2846315 by ayduns: Aggregate sometimes blank
    
jurgenhaas’s picture

Status: Active » Fixed

Nice one, thanks @ayduns for the patch. I've commited that to dev release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.