Merge branch 'MDL-76179-master' of https://github.com/aanabit/moodle

This commit is contained in:
Jun Pataleta 2022-11-14 13:22:25 +08:00
commit dc44a1b4f4
2 changed files with 1 additions and 2 deletions

View File

@ -262,7 +262,7 @@ class action_bar {
if ($hasimport) {
// Import.
$actionsselectparams = ['id' => $this->cmid, 'action' => 'import'];
$actionsselectparams = ['id' => $this->cmid];
$actionsselect->add(new \action_menu_link(
new moodle_url('/mod/data/preset.php', $actionsselectparams),
null,

View File

@ -66,7 +66,6 @@ class zero_state_action_bar implements templatable, renderable {
$createfieldbutton = $actionbar->get_create_fields();
$data['createfieldbutton'] = $createfieldbutton->export_for_template($output);
$params['action'] = 'import';
$importpresetlink = new moodle_url('/mod/data/preset.php', $params);
$importpresetbutton = new \single_button($importpresetlink,
get_string('importapreset', 'mod_data'), 'get', false, [