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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user