bug #15271 fix broken ChoiceQuestion (sstok)
This PR was merged into the 2.7 branch. Discussion ---------- fix broken ChoiceQuestion |Q |A | |--- |---| |Bug Fix? |yes| |New Feature? |n | |BC Breaks? |n | |Deprecations?|n | |Tests Pass? |yes| |Fixed Tickets| | |License |MIT| |Doc PR | | Commit175af7f3ac (diff-e1d5cef4b49c9c530f50aae153f6a541)
seems to have introduced an unnoticed bug. QuestionHelperTest hangs the tests (due to throwing an undefined index exception internally). Its a bit strange why this happend but it seems somehow Git messed-up the patch somewhere during the process. The broken commit only exists in the commit and not in any downstream branches. Commits -------3fcf61e
fix broken ChoiceQuestion
This commit is contained in:
commit
bb54d8ce33
@ -162,7 +162,7 @@ class ChoiceQuestion extends Question
|
||||
throw new \InvalidArgumentException(sprintf($errorMessage, $value));
|
||||
}
|
||||
|
||||
$multiselectChoices[] = $choices[(string) $result];
|
||||
$multiselectChoices[] = (string) $result;
|
||||
}
|
||||
|
||||
if ($multiselect) {
|
||||
|
Reference in New Issue
Block a user