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 'core/Tracker/Action.php')
-rw-r--r--core/Tracker/Action.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/core/Tracker/Action.php b/core/Tracker/Action.php
index 23372538ac..b892866781 100644
--- a/core/Tracker/Action.php
+++ b/core/Tracker/Action.php
@@ -290,6 +290,11 @@ abstract class Action
$value = $dimension->onLookupAction($this->request, $this);
if (false !== $value) {
+
+ if (is_float($value)) {
+ $value = Common::forceDotAsSeparatorForDecimalPoint($value);
+ }
+
$field = $dimension->getColumnName();
if (empty($field)) {
@@ -342,6 +347,11 @@ abstract class Action
$value = $dimension->onNewAction($this->request, $visitor, $this);
if ($value !== false) {
+
+ if (is_float($value)) {
+ $value = Common::forceDotAsSeparatorForDecimalPoint($value);
+ }
+
$visitAction[$dimension->getColumnName()] = $value;
}
}
@@ -357,7 +367,7 @@ abstract class Action
$customValue = $this->getCustomFloatValue();
if (!empty($customValue)) {
- $visitAction[self::DB_COLUMN_CUSTOM_FLOAT] = $customValue;
+ $visitAction[self::DB_COLUMN_CUSTOM_FLOAT] = Common::forceDotAsSeparatorForDecimalPoint($customValue);
}
$customVariables = $this->getCustomVariables();