I have the problem when a view has more than one displays. When I show a display as views calc table and the default display has a contextual filter where i set the option to show no results behavior if the contextual filter is not given, the view to calculate the table summary is always the default view. In my case this view returns no result because there is no argument given.
I should be better to execute the correct display to calculate the table. Otherwise, if there is no result as in my case there will be no summary in the table footer.

CommentFileSizeAuthor
#3 views_calc-1868900.patch533 bytesa.milkovsky
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

a.milkovsky’s picture

I can confirm this issue. I have many displays in the view. When contextual filters differs from master display views calc doesn't work correctly. It shows calculation results from master display

a.milkovsky’s picture

As temporary solution :
I've deleted all contextual filters in the Master display and overrided them in other displays

a.milkovsky’s picture

Status: Active » Needs review
FileSize
533 bytes

Views calc realy always executes "filter criterias" and "contextual filters" from default display.
So before executing view we must set view in a needed display. It's very important!
Here is the patch for it.

manuelBS’s picture

This solves the probelm for me

a.milkovsky’s picture

Status: Needs review » Reviewed & tested by the community

thanks, so

skorzh’s picture

Works good for me too.

KarenS’s picture

Issue summary: View changes

This is now committed. Thanks!

KarenS’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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