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:
authorStefan Giehl <stefan@matomo.org>2021-06-17 10:58:25 +0300
committerGitHub <noreply@github.com>2021-06-17 10:58:25 +0300
commitfbd68bded0f652350ad67d191e7272489302ae3d (patch)
tree1eeda690fbf7c628ce14dbc98c7c6a6dcd676ea0 /plugins/CoreHome
parent5e4ac63e78e9f2dfab42e632e40c6b339f39a015 (diff)
Fix tooltip in rowevolution popover title (#17680)
* Fix tooltip in rowevolution popover title * updates expected screenshots * moves ui screenshots of CustomDimensions plugin to git lfs
Diffstat (limited to 'plugins/CoreHome')
-rw-r--r--plugins/CoreHome/DataTableRowAction/RowEvolution.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreHome/DataTableRowAction/RowEvolution.php b/plugins/CoreHome/DataTableRowAction/RowEvolution.php
index 07c5804b8b..7dac6b6088 100644
--- a/plugins/CoreHome/DataTableRowAction/RowEvolution.php
+++ b/plugins/CoreHome/DataTableRowAction/RowEvolution.php
@@ -139,7 +139,8 @@ class RowEvolution
$popoverTitle = '';
if ($this->rowLabel) {
$icon = $this->rowIcon ? '<img height="16px" src="' . $this->rowIcon . '" alt="">' : '';
- $metricsText = sprintf(Piwik::translate('RowEvolution_MetricsFor'), $this->dimension . ': ' . $icon . ' ' . $this->rowLabel);
+ $rowLabel = str_replace('/', '<wbr>/', str_replace('&', '<wbr>&', $this->rowLabel ));
+ $metricsText = sprintf(Piwik::translate('RowEvolution_MetricsFor'), $this->dimension . ': ' . $icon . ' ' . $rowLabel);
$popoverTitle = $icon . ' ' . $this->rowLabel;
}
@@ -401,7 +402,6 @@ class RowEvolution
{
// By default, use the specified label
$rowLabel = Common::sanitizeInputValue($report['label']);
- $rowLabel = str_replace('/', '<wbr>/', str_replace('&', '<wbr>&', $rowLabel ));
// If the dataTable specifies a label_html, use this instead
/** @var $dataTableMap \Piwik\DataTable\Map */