diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-03-06 22:03:48 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-03-06 22:03:48 +0100 |
commit | ebe30fe4ed3caedadccd9ffee7dbd63d3d164572 (patch) | |
tree | 4f2d24df03d77fb7d4b94d493f9d2c910b3853c6 | |
parent | cc06a324051bc4ac2b60f7a7e38a1ab66a9e45b3 (diff) | |
download | bugzilla-ebe30fe4ed3caedadccd9ffee7dbd63d3d164572.tar.gz bugzilla-ebe30fe4ed3caedadccd9ffee7dbd63d3d164572.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
-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 47efe183e..8c4901a88 100644 --- a/template/en/default/reports/report-table.html.tmpl +++ b/template/en/default/reports/report-table.html.tmpl @@ -33,6 +33,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+$/,"") @@ -43,6 +47,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+$/,"") |