summaryrefslogtreecommitdiff
path: root/httemplate/search/elements/grouped-search/core
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-07-07 14:48:14 -0700
committerMark Wells <mark@freeside.biz>2015-07-07 14:49:08 -0700
commit37029cf228bef0fe95ff5dbc62e7fb989eadd328 (patch)
tree46a96505176c3da3be799b4817e6f909689eb802 /httemplate/search/elements/grouped-search/core
parentdbc913a3ae4d582fbfacf290ee75debe5f0b5413 (diff)
add a tab to grouped search containing all rows, #25944
Diffstat (limited to 'httemplate/search/elements/grouped-search/core')
-rw-r--r--httemplate/search/elements/grouped-search/core9
1 files changed, 9 insertions, 0 deletions
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;