From ce017edd2f7a2f10c0b8027424ded314ae8089c3 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Tue, 10 Oct 2017 12:33:26 +0200 Subject: [PATCH] MDL-59106 report_insights: Fix predicted value styling --- report/insights/classes/output/insights_list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report/insights/classes/output/insights_list.php b/report/insights/classes/output/insights_list.php index 158e8bebb1c..2015b4331a2 100644 --- a/report/insights/classes/output/insights_list.php +++ b/report/insights/classes/output/insights_list.php @@ -109,7 +109,7 @@ class insights_list implements \renderable, \templatable { $preddata = array(); $preddata['predictiondisplayvalue'] = $this->model->get_target()->get_display_value($predictedvalue); list($preddata['style'], $preddata['outcomeicon']) = - insight::get_calculation_display($this->model->get_target(), $predictedvalue, $output); + insight::get_calculation_display($this->model->get_target(), floatval($predictedvalue), $output); $predictionvalues[$predictedvalue] = $preddata; }