]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16403A - save state in portfolio before redirecting to steal control url.
authormjollnir_ <mjollnir_>
Tue, 9 Sep 2008 14:08:59 +0000 (14:08 +0000)
committermjollnir_ <mjollnir_>
Tue, 9 Sep 2008 14:08:59 +0000 (14:08 +0000)
lib/portfolio/exporter.php

index cb73207751bc1fff0fe24a8a787450534c074159..e4842f5a1421f6fae5d02ec5cbba28896153c724 100644 (file)
@@ -186,10 +186,12 @@ class portfolio_exporter {
                 $this->alreadystolen[$stage] = false;
             }
         }
-        $this->save();
         if (!$this->alreadystolen[$stage] && $url = $this->instance->steal_control($stage)) {
+            $this->save();
             redirect($url);
             break;
+        } else {
+            $this->save();
         }
 
         $waiting = $this->instance->get_export_config('wait');