Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-10-02 18:16:04 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-10-02 18:16:04 +0400
commit957b80e7f67efa9901760afe96340b0648f7f837 (patch)
tree935ed69d73b4dc3483118b8399f9c51be52f79d6
parent07d058fb50664e2b8666fbccb42a7b0928220b5a (diff)
Refs #4041, fixing DBStats regression.
-rw-r--r--plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig2
-rw-r--r--plugins/DBStats/DBStats.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig b/plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig
index bcf7afedd8..f18a7afa99 100644
--- a/plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig
+++ b/plugins/CoreVisualizations/templates/_dataTableViz_htmlTable.twig
@@ -18,7 +18,7 @@
{% else %}
{%- for rowId, row in dataTable.getRows() -%}
{%- set rowHasSubtable = not subtablesAreDisabled and row.getIdSubDataTable() and properties.subtable_controller_action is not null -%}
- {%- set shouldHighlightRow = rowId == constant('Piwik\\DataTable::ID_SUMMARY_ROW') and properties.highlight_summary_row -%}
+ {%- set shouldHighlightRow = rowId == constant('Piwik\\DataTable::ID_SUMMARY_ROW') and properties.visualization_properties.highlight_summary_row -%}
{# display this row if it doesn't have a subtable or if we don't replace the row with the subtable #}
{%- set showRow = subtablesAreDisabled
diff --git a/plugins/DBStats/DBStats.php b/plugins/DBStats/DBStats.php
index 7f7fc0301d..6e5f322191 100644
--- a/plugins/DBStats/DBStats.php
+++ b/plugins/DBStats/DBStats.php
@@ -252,13 +252,13 @@ class DBStats extends \Piwik\Plugin
$properties['filter_sort_column'] = 'label';
$properties['filter_sort_order'] = 'desc';
$properties['filter_limit'] = 25;
- $properties['highlight_summary_row'] = true;
$properties['show_search'] = false;
$properties['show_exclude_low_population'] = false;
$properties['show_tag_cloud'] = false;
$properties['show_table_all_columns'] = false;
- $properties['keep_summary_row'] = true;
+ $properties['visualization_properties']['table']['keep_summary_row'] = true;
$properties['visualization_properties']['table']['disable_row_evolution'] = true;
+ $properties['visualization_properties']['table']['highlight_summary_row'] = true;
$properties['translations'] = array(
'label' => Piwik_Translate('DBStats_Table'),
'year' => Piwik_Translate('CoreHome_PeriodYear'),