diff --git a/plugins/CoreConsole/Commands/GenerateReport.php b/plugins/CoreConsole/Commands/GenerateReport.php index 7afd139380aeff8191bfeca551377b768806db23..d03b20781ba15f57e3fbdbb138a4a7cef1c1f87e 100644 --- a/plugins/CoreConsole/Commands/GenerateReport.php +++ b/plugins/CoreConsole/Commands/GenerateReport.php @@ -9,6 +9,7 @@ namespace Piwik\Plugins\CoreConsole\Commands; +use Piwik\Columns\Dimension; use Piwik\Plugin\Report; use Piwik\Translate; use Symfony\Component\Console\Input\InputInterface; @@ -234,6 +235,14 @@ class GenerateReport extends GeneratePluginBase } } + foreach (Dimension::getAllDimensions() as $dimension) { + $name = $dimension->getName(); + if (!empty($name)) { + $dimensions[$name] = get_class($dimension); + $dimensionNames[] = $name; + } + } + $dimensionNames = array_values(array_unique($dimensionNames)); $validate = function ($dimension) use ($dimensions) {