MDL-73456 Questions: Question bank tertiary navigation is not correct

"Questions" is always selected even the user is editing the question category
This commit is contained in:
Huong Nguyen 2022-01-05 09:02:22 +07:00
parent 541d999d27
commit c789e1f4f0

View File

@ -66,7 +66,7 @@ class qbank_actionbar implements templatable, renderable {
$menu[$importlink->out(false)] = get_string('import', 'question');
$menu[$exportlink->out(false)] = get_string('export', 'question');
$urlselect = new url_select($menu, $this->currenturl, null, 'questionbankaction');
$urlselect = new url_select($menu, $this->currenturl->out(false), null, 'questionbankaction');
$urlselect->set_label('questionbankactionselect', ['class' => 'accesshide']);
return ['questionbankselect' => $urlselect->export_for_template($output)];