diff --git a/core/ViewDataTable/Factory.php b/core/ViewDataTable/Factory.php index 2873e8538a1..67e329e6c74 100644 --- a/core/ViewDataTable/Factory.php +++ b/core/ViewDataTable/Factory.php @@ -125,6 +125,8 @@ public static function build($defaultType = null, $apiAction = false, $controlle $type = $defaultType ? : HtmlTable::ID; } + $params['viewDataTable'] = $type; + $visualizations = Manager::getAvailableViewDataTables(); if (array_key_exists($type, $visualizations)) { diff --git a/plugins/CoreHome/DataTableRowAction/RowEvolution.php b/plugins/CoreHome/DataTableRowAction/RowEvolution.php index 2e2631203a2..c86b83b2d0f 100644 --- a/plugins/CoreHome/DataTableRowAction/RowEvolution.php +++ b/plugins/CoreHome/DataTableRowAction/RowEvolution.php @@ -81,7 +81,7 @@ class RowEvolution * @param null|string $graphType * @throws Exception */ - public function __construct($idSite, $date, $graphType = null) + public function __construct($idSite, $date, $graphType = 'graphEvolution') { $this->apiMethod = Common::getRequestVar('apiMethod', '', 'string'); if (empty($this->apiMethod)) throw new Exception("Parameter apiMethod not set.");