Skip to content

Commit

Permalink
Merge pull request #6623 from Automattic/fix/question-default-value
Browse files Browse the repository at this point in the history
  • Loading branch information
gikaragia committed Mar 9, 2023
2 parents ab8ec16 + a9a7bbf commit 4aa89ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/blocks/quiz/question-block/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"type": "object",
"default": {
"grade": 1,
"hideAnswerFeedback": true
"hideAnswerFeedback": ""
}
},
"editable": {
Expand Down
4 changes: 4 additions & 0 deletions changelog/fix-question-default-value
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Fix error on quiz update
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ public function get_common_question_properties_schema(): array {
'hideAnswerFeedback' => [
'type' => 'string',
'description' => 'Hide/show answer feedback for the question',
'default' => false,
'default' => '',
],
],
],
Expand Down

0 comments on commit 4aa89ca

Please sign in to comment.