Skip to content

Commit

Permalink
Merge pull request #2 from pixelant/development
Browse files Browse the repository at this point in the history
[BUGFIX] show correct value for percents in BE analysis
  • Loading branch information
anjeylink authored Nov 20, 2017
2 parents 201ac07 + 9d59c84 commit 1e5b66d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Controller/SurveyAnalysisController.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ protected function generateAnalysisData(Survey $survey): array
protected function calculatePercentsForQuestionData(array $questionData, int $allAnswersCount): array
{
foreach ($questionData as &$questionItem) {
$questionItem['percents'] = round($questionItem['count'] / $allAnswersCount, 3) * 100;
$questionItem['percents'] = (string)(round($questionItem['count'] / $allAnswersCount, 3) * 100);
}

return $questionData;
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
'author_email' => '',
'state' => 'alpha',
'clearCacheOnLoad' => 0,
'version' => '1.0.1',
'version' => '1.0.2',
'constraints' => [
'depends' => [
'typo3' => '8.7.0-8.7.99',
Expand Down

0 comments on commit 1e5b66d

Please sign in to comment.