Correctly retrieve the value

This commit is contained in:
Daniel Ruf
2019-02-27 17:06:54 +01:00
parent 04b1cb5494
commit 7b8b7bf907

View File

@@ -108,7 +108,7 @@ abstract class AbstractMetricRepository
$point->value = $metric->default_value;
}
if ($point->value === 0 && $metric->default_value != $value) {
if ($point->value === 0 && $metric->default_value != $point->value) {
$point->value = $metric->default_value;
}