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:
authordiosmosis <diosmosis@users.noreply.github.com>2019-01-25 02:30:33 +0300
committerGitHub <noreply@github.com>2019-01-25 02:30:33 +0300
commitfe615e3e15f148084ac61363864dd602fdb075c6 (patch)
treef8033cdaee696291fa0d97f00d718928cbb63483 /plugins/Goals/Goals.php
parentd95e2d0792bd229b31b000818c973191eee3b7e3 (diff)
Fixing build (#14007)
* Fix format of scheduled report tests. * Fixing goal name regression. * Fix change unneeded for evolution graph. * decode in segment generator to make up for value encode * Update two expected screenshots. * Update two more screenshots.
Diffstat (limited to 'plugins/Goals/Goals.php')
-rw-r--r--plugins/Goals/Goals.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/Goals/Goals.php b/plugins/Goals/Goals.php
index 389e1f9b84..5cb133ee58 100644
--- a/plugins/Goals/Goals.php
+++ b/plugins/Goals/Goals.php
@@ -53,9 +53,13 @@ class Goals extends \Piwik\Plugin
}
}
- public static function makeGoalColumn($idGoal, $column)
+ public static function makeGoalColumn($idGoal, $column, $forceInt = true)
{
- return 'goal_'. (int)$idGoal . '_' . $column;
+ if ($forceInt) { // in non-archiver code idGoal can be, eg, ecommerceOrder
+ $idGoal = (int) $idGoal;
+ }
+
+ return 'goal_'. $idGoal . '_' . $column;
}
public static function getGoalColumns($idGoal)