Skip to content
Snippets Groups Projects
Commit 99d7da31 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "Fragebogen: Likert komplett kaputt"

Closes #2509

Merge request studip/studip!1697
parent f228e970
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ $options = $vote->questiondata['options']; ...@@ -40,7 +40,7 @@ $options = $vote->questiondata['options'];
foreach ($answers as $answer) { foreach ($answers as $answer) {
if ($answer['answerdata']['answers'][$key] == $option_index) { if ($answer['answerdata']['answers'][$key] == $option_index) {
$hits++; $hits++;
if ($answer['user_id'] && $answer['user_id'][0] !== 'n') { if ($answer['user_id'] && $answer['user_id'][0] !== 'q' && $answer['user_id'][0] !== 'n') {
$names[] = $answer->user->getFullName('full'); $names[] = $answer->user->getFullName('full');
} }
} }
......
...@@ -40,7 +40,7 @@ $options = range($vote->questiondata['minimum'], $vote->questiondata['maximum']) ...@@ -40,7 +40,7 @@ $options = range($vote->questiondata['minimum'], $vote->questiondata['maximum'])
foreach ($answers as $answer) { foreach ($answers as $answer) {
if ($answer['answerdata']['answers'][$key] == $option) { if ($answer['answerdata']['answers'][$key] == $option) {
$hits++; $hits++;
if ($answer['user_id'] && $answer['user_id'][0] !== 'n') { if ($answer['user_id'] && $answer['user_id'][0] !== 'q' && $answer['user_id'][0] !== 'n') {
$names[] = $answer->user->getFullName('full'); $names[] = $answer->user->getFullName('full');
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment