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/Goals/Pages.php')
-rw-r--r--plugins/Goals/Pages.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/Goals/Pages.php b/plugins/Goals/Pages.php
index cb22954dda..cef5939b83 100644
--- a/plugins/Goals/Pages.php
+++ b/plugins/Goals/Pages.php
@@ -275,11 +275,12 @@ class Pages
$categoryText = $translationHelper->translateGoalMetricCategory($category);
}
- foreach ($reports as $report) {
+ // Sort reports in each category to respect the report order property
+ uasort($reports, function ($a, $b) {
+ return $a['order'] <=> $b['order'];
+ });
- if ($report['name'] === Piwik::translate('Goals_EntryPagesTitles')) {
- continue;
- }
+ foreach ($reports as $report) {
$order++;
@@ -329,7 +330,7 @@ class Pages
if (is_null($order)) {
$order = array(
'Referrers_Referrers',
- 'Pages',
+ 'General_Actions',
'General_Visit',
'General_Visitors',
'VisitsSummary_VisitsSummary',