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
+2 -1
View File
@@ -58,6 +58,7 @@ function get_module_from_cmid($cmid) {
* @param bool $noparent if true only questions with NO parent will be selected
* @param bool $recurse include subdirectories
* @param bool $export set true if this is called by questionbank export
* @param bool $latestversion if only the latest versions needed
* @return array
*/
function get_questions_category(object $category, bool $noparent, bool $recurse = true, bool $export = true,
@@ -67,7 +68,7 @@ function get_questions_category(object $category, bool $noparent, bool $recurse
// Build sql bit for $noparent.
$npsql = '';
if ($noparent) {
$npsql = " and q.parent='0' ";
$npsql = " and q.parent='0' ";
}
// Get list of categories.