Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | views_calc-1868900.patch | 533 bytes | a.milkovsky |
Comments
Comment #1
a.milkovskyI 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
Comment #2
a.milkovskyAs temporary solution :
I've deleted all contextual filters in the Master display and overrided them in other displays
Comment #3
a.milkovskyViews 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.
Comment #4
manuelBS CreditAttribution: manuelBS commentedThis solves the probelm for me
Comment #5
a.milkovskythanks, so
Comment #6
skorzhWorks good for me too.
Comment #7
KarenS CreditAttribution: KarenS commentedThis is now committed. Thanks!
Comment #8
KarenS CreditAttribution: KarenS commented