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:
authormattpiwik <matthieu.aubry@gmail.com>2011-09-22 13:22:02 +0400
committermattpiwik <matthieu.aubry@gmail.com>2011-09-22 13:22:02 +0400
commit169f211cd11cf548c8456e74b26d6bb390135e78 (patch)
tree62c3e4d81e436ffe558ab2fbbae6225063b50436 /plugins/CustomVariables/API.php
parentc3729856a852914d78b492102f61dbe05451ede0 (diff)
Fixes #2676
* Now tracking custom variables with empty value in setEcommerceView * Now aggregating custom variables with empty value under a label "Value not defined" (in english always) * Updated tests and refactored code in API instead of archiving git-svn-id: http://dev.piwik.org/svn/trunk@5203 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/CustomVariables/API.php')
-rw-r--r--plugins/CustomVariables/API.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/CustomVariables/API.php b/plugins/CustomVariables/API.php
index eecfd7a2d5..c879ef3c1a 100644
--- a/plugins/CustomVariables/API.php
+++ b/plugins/CustomVariables/API.php
@@ -83,6 +83,9 @@ class Piwik_CustomVariables_API
// Hack Ecommerce product price tracking to display correctly
$dataTable->renameColumn('price_viewed', 'price');
+ $dataTable->queueFilter('ColumnCallbackReplace',
+ array('label', create_function('$label', 'return $label == Piwik_CustomVariables::LABEL_CUSTOM_VALUE_NOT_DEFINED ? "'. Piwik_Translate( 'General_NotDefined', Piwik_Translate('CustomVariables_ColumnCustomVariableValue')) .'" : $label;')));
+
return $dataTable;
}
}