MDL-71696 core_question: Implement question status change

This commit implements the status change pop up for a question
in the base view. This feature update will allow the change of
status of a question without creating a new version.
This commit also implements the status as a char rather than
an int value.
This commit is contained in:
Safat Shahin
2022-02-03 22:22:50 +11:00
parent b1ad75aef5
commit 3008edd366
73 changed files with 639 additions and 226 deletions
+1
View File
@@ -1182,6 +1182,7 @@ class qformat_xml extends qformat_default {
$invalidquestion = false;
$fs = get_file_storage();
$contextid = $question->contextid;
$question->status = 0;
// Get files used by the questiontext.
$question->questiontextfiles = $fs->get_area_files(
$contextid, 'question', 'questiontext', $question->id);