Skip to content

Commit

Permalink
Refs #4041, remove override of filter_offset in Graph DataTable visua…
Browse files Browse the repository at this point in the history
…lization.
  • Loading branch information
Benaka Moorthi committed Aug 21, 2013
1 parent 0595d8b commit 1fe353b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/Visualization/Graph.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ public function __construct($view)
$view->translations['revenue'] = Piwik_Translate('General_TotalRevenue');
}

// TODO: this should not be required here. filter_limit should not be a view property, instead HtmlTable should use 'limit' or something,
// and manually set request_parameters_to_modify['filter_limit'] based on that. (same for filter_offset).
$view->request_parameters_to_modify['filter_limit'] = false;
$view->request_parameters_to_modify['filter_offset'] = false;

if ($view->visualization_properties->max_graph_elements) {
$view->request_parameters_to_modify['filter_truncate'] = $view->visualization_properties->max_graph_elements - 1;
Expand Down

0 comments on commit 1fe353b

Please sign in to comment.