Skip to content

Commit 133f4c7

Browse files
toanlamttoanlam
andauthored
Questionnaire: improved accessibility for essay box type (#506)
* The text editor should be programmatically associated with the question Co-authored-by: toanlam <[email protected]>
1 parent 5fc9623 commit 133f4c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/question/question.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ public function questionstart_survey_display($qnum, $response=null) {
951951
} else if ($this->type_id == QUESDROP) {
952952
$pagetags->label = (object)['for' => self::qtypename($this->type_id) . $this->name];
953953
} else if ($this->type_id == QUESESSAY) {
954-
$pagetags->label = (object)['for' => 'edit-q' . $this->id];
954+
$pagetags->label = (object)['for' => 'q' . $this->id];
955955
}
956956
$options = ['noclean' => true, 'para' => false, 'filter' => true, 'context' => $this->context, 'overflowdiv' => true];
957957
$content = format_text(file_rewrite_pluginfile_urls($this->content, 'pluginfile.php',

0 commit comments

Comments
 (0)