Commit ebe30fe4 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 731323: Wrong URLs in the "Total" row at the bottom of tabular reports when…

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
parent cc06a324
......@@ -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 %]&amp;[% col_field FILTER js %]="
+ oColumn.field + "[% '&amp;' _ row_vals IF row_vals %]'>"
+ oData + "</a>";
else
elLiner.innerHTML = "<a href='[% urlbase %]&amp;[% 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 %][% '&amp;' _ row_vals IF row_vals %]
[%~ '&amp;' _ col_vals IF col_vals %]'>"
+ oData + "</a>";
else
elLiner.innerHTML = "<a href='[% urlbase %]&amp;[% row_field FILTER js %]="
+ oRecord.getData("row_title").replace(/\s+$/,"")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment