Skip to content

Commit

Permalink
Merge branch 'MDL-76179-master' of https://github.com/aanabit/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Nov 14, 2022
2 parents 7c3188b + f855217 commit dc44a1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion mod/data/classes/output/action_bar.php
Expand Up @@ -262,7 +262,7 @@ protected function get_presets_actions_select(bool $hasimport = false): ?\action

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,
Expand Down
1 change: 0 additions & 1 deletion mod/data/classes/output/zero_state_action_bar.php
Expand Up @@ -66,7 +66,6 @@ public function export_for_template(\renderer_base $output): array {
$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, [
Expand Down

0 comments on commit dc44a1b

Please sign in to comment.