mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
Merge branch 'MDL-76179-master' of https://github.com/aanabit/moodle
This commit is contained in:
commit
dc44a1b4f4
@ -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,
|
||||
|
@ -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, [
|
||||
|
Loading…
x
Reference in New Issue
Block a user