X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fsearch%2Felements%2Fgrouped-search%2Fcore;h=ffa8cee39697db71180299e2fc25608010c65140;hp=fe47fb7d1fe0a2cf043a4f2483b93bccf0c17ec6;hb=ba95860daaf6c4de2f90ef28057516bc7d44c8a0;hpb=4a03b0b62cef514f9217e7be61cf7a16218ea387 diff --git a/httemplate/search/elements/grouped-search/core b/httemplate/search/elements/grouped-search/core index fe47fb7d1..ffa8cee39 100644 --- a/httemplate/search/elements/grouped-search/core +++ b/httemplate/search/elements/grouped-search/core @@ -130,6 +130,15 @@ for my $i (0 .. scalar(@groups) - 1) { push @queries, $detail_query; } +if ( $opt{show_combined} ) { + # set up group 0 as a combined view + unshift @groups, $totals; + unshift @group_labels, 'All ' . PL($opt{name_singular}) . + ' (' . $totals->num_rows . ')'; + unshift @group_footers, []; # the total footer will suffice + unshift @queries, $base_query->clone; +} + my @total_footer; if ($opt{'total_row'}) { for( my $col = 0;