Skip to content
Extraits de code Groupes Projets
Valider 510c8c70 rédigé par mattpiwik's avatar mattpiwik
Parcourir les fichiers

Fixes #2755

git-svn-id: http://dev.piwik.org/svn/trunk@5779 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent 818b88bc
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -52,22 +52,13 @@ class Piwik_CustomVariables_API
if($dataTable instanceof Piwik_DataTable
&& !$_leavePiwikCoreVariables)
{
$mapping = array(
'_pks' => Piwik_Translate('Goals_ProductSKU'),
'_pkn' => Piwik_Translate('Goals_ProductName'),
'_pkc' => Piwik_Translate('Goals_ProductCategory'),
'_pkp' => 'do not display price values in UI'
);
foreach($mapping as $core => $friendly)
$mapping = array('_pks', '_pkn', '_pkc', '_pkp');
foreach($mapping as $name)
{
$row = $dataTable->getRowFromLabel($core);
$row = $dataTable->getRowFromLabel($name);
if($row)
{
$row->setColumn('label', $friendly);
if($core == '_pkp')
{
$dataTable->deleteRow($dataTable->getRowIdFromLabel($core));
}
$dataTable->deleteRow($dataTable->getRowIdFromLabel($name));
}
}
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter