Skip to content

Commit

Permalink
refs #6435 fix evolution filter did cast a float to string resulting …
Browse files Browse the repository at this point in the history
…in wrong sorting results
  • Loading branch information
tsteur committed Nov 7, 2014
1 parent 5eda774 commit f7b1c7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/DataTable/Filter/CalculateEvolutionFilter.php
Expand Up @@ -8,6 +8,7 @@
*/
namespace Piwik\DataTable\Filter;

use Piwik\Common;
use Piwik\DataTable;
use Piwik\DataTable\Row;
use Piwik\Site;
Expand Down Expand Up @@ -122,6 +123,8 @@ protected function formatValue($value, $divisor)
$value = self::getPercentageValue($value, $divisor, $this->quotientPrecision);
$value = self::appendPercentSign($value);

$value = Common::forceDotAsSeparatorForDecimalPoint($value);

return $value;
}

Expand Down

0 comments on commit f7b1c7a

Please sign in to comment.