diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-03-06 22:05:20 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-03-06 22:05:20 +0100 |
commit | 872ad2b238317ff1c81633b25cfb3460886d0029 (patch) | |
tree | 1e1ad2767d70262188034b7fd7b1d67b0cdde4e2 /template/en/default/reports | |
parent | c4d48bbcc731852975f27365d1af7e27e6db5d57 (diff) | |
download | bugzilla-872ad2b238317ff1c81633b25cfb3460886d0029.tar.gz bugzilla-872ad2b238317ff1c81633b25cfb3460886d0029.tar.xz |
Bug 731323: Wrong URLs in the "Total" row at the bottom of tabular reports when JS is enabled and a user field is used for the vertical axis
r=gerv a=LpSolit
Diffstat (limited to 'template/en/default/reports')
-rw-r--r-- | template/en/default/reports/report-table.html.tmpl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/template/en/default/reports/report-table.html.tmpl b/template/en/default/reports/report-table.html.tmpl index 561d0517e..d32335ce8 100644 --- a/template/en/default/reports/report-table.html.tmpl +++ b/template/en/default/reports/report-table.html.tmpl @@ -50,6 +50,10 @@ YAHOO.util.Event.addListener(window, "load", function() { this.Linkify = function(elLiner, oRecord, oColumn, oData) { if (oData == 0) elLiner.innerHTML = "."; + else if (oRecord.getData("row_title") == "Total") + elLiner.innerHTML = "<a href='[% urlbase %]&[% col_field FILTER js %]=" + + oColumn.field + "[% '&' _ row_vals IF row_vals %]'>" + + oData + "</a>"; else elLiner.innerHTML = "<a href='[% urlbase %]&[% row_field FILTER js %]=" + oRecord.getData("row_title").replace(/\s+$/,"") @@ -60,6 +64,10 @@ YAHOO.util.Event.addListener(window, "load", function() { this.LinkifyTotal = function(elLiner, oRecord, oColumn, oData) { if (oData == 0) elLiner.innerHTML = "."; + else if (oRecord.getData("row_title") == "Total") + elLiner.innerHTML = "<a href='[% urlbase %][% '&' _ row_vals IF row_vals %] + [%~ '&' _ col_vals IF col_vals %]'>" + + oData + "</a>"; else elLiner.innerHTML = "<a href='[% urlbase %]&[% row_field FILTER js %]=" + oRecord.getData("row_title").replace(/\s+$/,"") |