diff options
Diffstat (limited to 'plugins/Goals/Goals.php')
-rw-r--r-- | plugins/Goals/Goals.php | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/plugins/Goals/Goals.php b/plugins/Goals/Goals.php index 7c9b006477..1ae77ed879 100644 --- a/plugins/Goals/Goals.php +++ b/plugins/Goals/Goals.php @@ -504,19 +504,13 @@ class Piwik_Goals extends Plugin } } - public function getReportDisplayProperties(&$properties, $apiAction) + public function getReportDisplayProperties(&$properties) { - $reportViewProperties = array( - 'Goals.getItemsSku' => $this->getDisplayPropertiesForGetItemsSku(), - 'Goals.getItemsName' => $this->getDisplayPropertiesForGetItemsName(), - 'Goals.getItemsCategory' => $this->getDisplayPropertiesForGetItemsCategory(), - 'Goals.getVisitsUntilConversion' => $this->getDisplayPropertiesForGetVisitsUntilConversion(), - 'Goals.getDaysToConversion' => $this->getDisplayPropertiesForGetDaysToConversion(), - ); - - if (isset($reportViewProperties[$apiAction])) { - $properties = $reportViewProperties[$apiAction]; - } + $properties['Goals.getItemsSku'] = $this->getDisplayPropertiesForGetItemsSku(); + $properties['Goals.getItemsName'] = $this->getDisplayPropertiesForGetItemsName(); + $properties['Goals.getItemsCategory'] = $this->getDisplayPropertiesForGetItemsCategory(); + $properties['Goals.getVisitsUntilConversion'] = $this->getDisplayPropertiesForGetVisitsUntilConversion(); + $properties['Goals.getDaysToConversion'] = $this->getDisplayPropertiesForGetDaysToConversion(); } private function getDisplayPropertiesForGetItemsSku() |