diff options
author | Stefan Giehl <stefan@piwik.org> | 2016-09-26 01:22:41 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-09-26 01:22:41 +0300 |
commit | ab3eba1b854e978ed4f3bcb3b144a4fff2964aab (patch) | |
tree | 57c7580412f5c8f79dda5da50d60056ff0ee209e /plugins/Goals/Reports | |
parent | cdebeec92390879f2ae4c7cbacd0969d8f735e41 (diff) |
Adds possibility to define a goal description (#10057)
* Adds possibility to define goal description
* update db schema
* fixed tests
* show goal description in goal reports
* fix tests
Diffstat (limited to 'plugins/Goals/Reports')
-rw-r--r-- | plugins/Goals/Reports/Get.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Goals/Reports/Get.php b/plugins/Goals/Reports/Get.php index b6842b1722..712a986937 100644 --- a/plugins/Goals/Reports/Get.php +++ b/plugins/Goals/Reports/Get.php @@ -185,6 +185,9 @@ class Get extends Base $goal = $this->getGoal($idGoal); if (!empty($goal['name'])) { $view->config->title = Piwik::translate('Goals_GoalX', "'" . $goal['name'] . "'"); + if (!empty($goal['description'])) { + $view->config->description = $goal['description']; + } } else { $view->config->title = Piwik::translate('General_EvolutionOverPeriod'); } |