Skip to content
Snippets Groups Projects
Commit 6e04f023 authored by Tim Hunt's avatar Tim Hunt
Browse files

Followup: Question tests/deploy version useful links.

Makt the question bank link work for hidden questions.
parent ab940492
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,9 @@ unset($qbankparams['seed']);
$qbankparams['qperpage'] = 1000; // Should match MAXIMUM_QUESTIONS_PER_PAGE but that constant is not easily accessible.
$qbankparams['category'] = $questiondata->category . ',' . $question->contextid;
$qbankparams['lastchanged'] = $question->id;
if ($questiondata->hidden) {
$qbankparams['showhidden'] = 1;
}
$questionbanklink = new moodle_url('/question/edit.php', $qbankparams);
$exportquestionlink = new moodle_url('/question/type/stack/exportone.php', $urlparams);
$exportquestionlink->param('sesskey', sesskey());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment