Skip to content

Commit

Permalink
MDL-56481 tool_lpmigrate: Fix notice when cancelling framework migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Lock authored and junpataleta committed Nov 3, 2016
1 parent cad8adc commit 6e10972
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions admin/tool/lpmigrate/frameworks.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@
$PAGE->set_title($title);
$PAGE->set_heading(get_string('pluginname', 'tool_lpmigrate'));

$output = $PAGE->get_renderer('tool_lpmigrate');

echo $output->header();
echo $output->heading($title);

$form = new \tool_lpmigrate\form\migrate_framework($context);
if ($form->is_cancelled()) {
redirect($url);
}

$output = $PAGE->get_renderer('tool_lpmigrate');
echo $output->header();
echo $output->heading($title);

} else if ($data = $form->get_data()) {
if ($data = $form->get_data()) {

// Map competencies from both framework.
$mapper = new \tool_lpmigrate\framework_mapper($data->from, $data->to);
Expand Down

0 comments on commit 6e10972

Please sign in to comment.