mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 18:36:42 +02:00
MDL-61364 question: adjust code and fix phpunit errors
This commit is contained in:
parent
e7329cd026
commit
2cf7bde8e9
5 changed files with 7 additions and 1 deletions
|
@ -162,6 +162,7 @@ if (isset($question->categoryobject)) {
|
|||
$question->formoptions = new stdClass();
|
||||
|
||||
$categorycontext = context::instance_by_id($category->contextid);
|
||||
$question->contextid = $category->contextid;
|
||||
$addpermission = has_capability('moodle/question:add', $categorycontext);
|
||||
|
||||
if ($id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue