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:
Diffstat (limited to 'plugins/Events/Reports/GetName.php')
-rw-r--r--plugins/Events/Reports/GetName.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/Events/Reports/GetName.php b/plugins/Events/Reports/GetName.php
index 886e992085..1f97eb7099 100644
--- a/plugins/Events/Reports/GetName.php
+++ b/plugins/Events/Reports/GetName.php
@@ -8,6 +8,7 @@
*/
namespace Piwik\Plugins\Events\Reports;
+use Piwik\Common;
use Piwik\Piwik;
use Piwik\Plugins\Events\Columns\EventName;
@@ -20,7 +21,11 @@ class GetName extends Base
$this->name = Piwik::translate('Events_EventNames');
$this->documentation = ''; // TODO
$this->metrics = array('nb_events', 'sum_event_value', 'min_event_value', 'max_event_value', 'avg_event_value', 'nb_events_with_value');
- $this->actionToLoadSubTables = 'getActionFromNameId';
+ if (Common::getRequestVar('secondaryDimension', false) == 'eventCategory') {
+ $this->actionToLoadSubTables = 'getCategoryFromNameId';
+ } else {
+ $this->actionToLoadSubTables = 'getActionFromNameId';
+ }
$this->order = 2;
$this->widgetTitle = 'Events_EventNames';
}