Skip to content

Commit

Permalink
Fixed issue #15584: Error when adding list-radio answer with code "0"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessica Höck committed Jan 14, 2020
1 parent fd61bc5 commit 00926bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/controllers/admin/questionedit.php
Expand Up @@ -1226,7 +1226,9 @@ private function storeAnswerOptions(&$oQuestion, $dataSet, $isCopyProcess = fals
unset($aAnswerOptionDataSet['aid']);
unset($aAnswerOptionDataSet['qid']);
}
if (empty($aAnswerOptionDataSet['code'])) {

$codeIsEmpty = (!isset($aAnswerOptionDataSet['code']));
if ($codeIsEmpty) {
throw new CHttpException(
500,
"Answer option code cannot be empty"
Expand Down

0 comments on commit 00926bd

Please sign in to comment.