diff options
Diffstat (limited to 'plugins/Goals/Goals.php')
-rw-r--r-- | plugins/Goals/Goals.php | 8 |
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) |