Skip to content

Commit

Permalink
fix #273, allow flagging of questions
Browse files Browse the repository at this point in the history
  • Loading branch information
dionysius committed Oct 13, 2020
1 parent 94bc795 commit f290772
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion attempt.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
$hasrated = false;

$options = new question_display_options();

$options->flags = question_display_options::EDITABLE;

if ($question->qtype instanceof qtype_description
|| $question->qtype instanceof qtype_essay) {
Expand Down
1 change: 1 addition & 0 deletions preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
}

$options = new question_display_options();
$options->flags = question_display_options::EDITABLE;

// Output.
$title = get_string('previewquestion', 'question', format_string($question->name));
Expand Down

0 comments on commit f290772

Please sign in to comment.