Mercurial > defr > drupal > views_calc
diff theme.inc @ 1:cedf71edacf5
Views Calc: Total du group dans le cas d'un group by
author | Franck Deroche <franck@defr.org> |
---|---|
date | Thu, 06 Aug 2009 19:09:42 +0200 |
parents | 0651c02e6ed7 |
children |
line wrap: on
line diff
--- a/theme.inc Wed Aug 05 18:20:29 2009 +0200 +++ b/theme.inc Thu Aug 06 19:09:42 2009 +0200 @@ -82,6 +82,9 @@ $vars['rows'] = array(); $totals = $view->totals; $sub_totals = $view->sub_totals; + if ($vars['title'] && $view->group_totals[$vars['title']]) { + $totals = $view->group_totals[$vars['title']]; + } $options = $view->style_plugin->options; $handler = $view->style_plugin; @@ -226,4 +229,4 @@ return; -} \ No newline at end of file +}