diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2016-09-14 01:00:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-14 01:00:11 +0300 |
commit | fa312e6aca5303036742990e29b19bb7e378973d (patch) | |
tree | 69356e67b514139d188bb7f91f359fc674771f51 /plugins/CoreHome/javascripts/dataTable_rowactions.js | |
parent | 73901757334d0f38a63fa2500a194db60071b56a (diff) |
Fix row evolution did not work for custom dimensions (#10498)
* fix row evolution for custom dimensions did not work
* remove no longer needed menu code
Diffstat (limited to 'plugins/CoreHome/javascripts/dataTable_rowactions.js')
-rw-r--r-- | plugins/CoreHome/javascripts/dataTable_rowactions.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/CoreHome/javascripts/dataTable_rowactions.js b/plugins/CoreHome/javascripts/dataTable_rowactions.js index 8e337fb9fa..a13543e93d 100644 --- a/plugins/CoreHome/javascripts/dataTable_rowactions.js +++ b/plugins/CoreHome/javascripts/dataTable_rowactions.js @@ -392,14 +392,19 @@ DataTable_RowActions_RowEvolution.prototype.showRowEvolution = function (apiMeth requestParams.colors = JSON.stringify(piwik.getSparklineColors()); var idDimension; + if (broadcast.getValueFromUrl('module') === 'Widgetize') { - idDimension = broadcast.getValueFromUrl('idDimension'); + idDimension = broadcast.getValueFromUrl('subcategory'); } else { - idDimension = broadcast.getValueFromHash('idDimension'); + idDimension = broadcast.getValueFromHash('subcategory'); } - if (idDimension) { - requestParams.idDimension = parseInt(idDimension, 10); + if (idDimension && ('' + idDimension).indexOf('customdimension') === 0) { + idDimension = ('' + idDimension).replace('customdimension', ''); + idDimension = parseInt(idDimension, 10); + if (idDimension > 0) { + requestParams.idDimension = idDimension; + } } $.extend(requestParams, extraParams); |