Merge branch 'MDL-83920-main' of https://github.com/lucaboesch/moodle
This commit is contained in:
@@ -1024,6 +1024,7 @@ class qformat_default {
|
||||
|
||||
// Did we actually process anything? Then continue path for following error checks.
|
||||
if ($count==0) {
|
||||
$contextid = $DB->get_field('question_categories', 'contextid', ['id' => $this->category->id]);
|
||||
$context = context::instance_by_id($contextid);
|
||||
$continuepath = "{$CFG->wwwroot}/question/bank/exportquestions/export.php?cmid={$context->instanceid}";
|
||||
throw new \moodle_exception('noquestions', 'question', $continuepath);
|
||||
|
||||
Reference in New Issue
Block a user