mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-61465 question: add editing context to tag condition
This commit is contained in:
parent
1287039e62
commit
ad54e6353a
@ -470,9 +470,10 @@ class view {
|
||||
$editcontexts = $this->contexts->having_one_edit_tab_cap($tabname);
|
||||
list($categoryid, $contextid) = explode(',', $cat);
|
||||
$catcontext = \context::instance_by_id($contextid);
|
||||
$thiscontext = $this->get_most_specific_context();
|
||||
// Category selection form.
|
||||
$this->display_question_bank_header();
|
||||
array_unshift($this->searchconditions, new \core_question\bank\search\tag_condition([$catcontext], $tagids));
|
||||
array_unshift($this->searchconditions, new \core_question\bank\search\tag_condition([$catcontext, $thiscontext], $tagids));
|
||||
array_unshift($this->searchconditions, new \core_question\bank\search\hidden_condition(!$showhidden));
|
||||
array_unshift($this->searchconditions, new \core_question\bank\search\category_condition(
|
||||
$cat, $recurse, $editcontexts, $this->baseurl, $this->course));
|
||||
|
Loading…
x
Reference in New Issue
Block a user