Fix on AVG feedback calculation

Change-Id: Icf09f3891f1b4f9d778826750f6ea591fdaf4f09
This commit is contained in:
Sebastian Marcet 2016-02-19 14:26:50 -03:00
parent a093fc5a01
commit 5485d902e9
2 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,7 @@ abstract class JsonUtils
public static function toJsonFloat($value)
{
if(empty($value)) return null;
return number_format(floatval($value),2);
return floatval(number_format(floatval($value),2));
}
/**

View File

@ -46,6 +46,8 @@ class Presentation extends SummitEvent
'ModeratorID' => 'moderator_speaker_id:json_int',
'Level' => 'level',
'AllowFeedBack' => 'allow_feedback:json_boolean',
'AvgFeedbackRate' => 'avg_feedback_rate:json_float',
'Published' => 'is_published:json_boolean',
);
/**