portfolio MDL-23022 Fixed navigation when cancelling a portfolio export
authorSam Hemelryk <sam@moodle.com>
Fri, 18 Mar 2011 08:19:59 +0000 (16:19 +0800)
committerSam Hemelryk <sam@moodle.com>
Fri, 18 Mar 2011 08:19:59 +0000 (16:19 +0800)
portfolio/add.php

index 91f96e2..696c32a 100644 (file)
@@ -94,6 +94,7 @@ if (!empty($dataid)) {
         if ($cancelsure) {
             $exporter->cancel_request($logreturn);
         } else {
+            portfolio_export_pagesetup($PAGE, $exporter->get('caller'));
             $exporter->print_header(get_string('confirmcancel', 'portfolio'));
             echo $OUTPUT->box_start();
             $yesbutton = new single_button(new moodle_url('/portfolio/add.php', array('id' => $dataid, 'cancel' => 1, 'cancelsure' => 1, 'logreturn' => $logreturn)), get_string('yes'));