Skip to content

Commit

Permalink
Refs matomo-org#4041, fixing DBStats regression.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benaka Moorthi committed Oct 2, 2013
1 parent 07d058f commit 957b80e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions plugins/DBStats/DBStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,13 @@ private function addBaseDisplayProperties(&$properties)
$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'),
Expand Down

0 comments on commit 957b80e

Please sign in to comment.