Skip to content

Commit f1b587f

Browse files
committed
Add 'All Visits at the top'
1 parent 93d8ece commit f1b587f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/SegmentEditor/Controller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function manageSegments(): string
3939
$view->showMenu = true;
4040

4141
$view->segmentList = SegmentEditor\API::getInstance()->getAll($this->idSite);
42+
array_unshift($view->segmentList, ['definition' => '', 'name' => Piwik::translate('SegmentEditor_DefaultAllVisits'), 'fixed' => true]);
4243
$view->segmentData = [];
4344
foreach ($view->segmentList as $index => $segment) {
4445
$view->segmentData[$index] = VisitsSummary\API::getInstance()

0 commit comments

Comments
 (0)