mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-75492 mod_data: Remove redirection messages on preset apply process
This commit is contained in:
parent
9b343752e2
commit
1c968103b7
11 changed files with 36 additions and 55 deletions
|
@ -151,8 +151,6 @@ if ($action === 'preview') {
|
|||
exit(0);
|
||||
}
|
||||
|
||||
echo $OUTPUT->header();
|
||||
|
||||
if ($action === 'finishimport') {
|
||||
if (!confirm_sesskey()) {
|
||||
throw new moodle_exception('invalidsesskey');
|
||||
|
@ -160,12 +158,10 @@ if ($action === 'finishimport') {
|
|||
$overwritesettings = optional_param('overwritesettings', false, PARAM_BOOL);
|
||||
$importer = preset_importer::create_from_parameters($manager);
|
||||
$importer->finish_import_process($overwritesettings, $data);
|
||||
|
||||
echo $OUTPUT->continue_button(new moodle_url('/mod/data/preset.php', ['d' => $data->id]));
|
||||
echo $OUTPUT->footer();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
echo $OUTPUT->header();
|
||||
|
||||
$actionbar = new \mod_data\output\action_bar($data->id, $url);
|
||||
echo $actionbar->get_presets_action_bar();
|
||||
$presets = new \mod_data\output\presets($manager, $presets, new \moodle_url('/mod/data/field.php'), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue