MDL-16403A - save state in portfolio before redirecting to steal control url.

This commit is contained in:
mjollnir_ 2008-09-09 14:08:59 +00:00
parent 74cd7b9303
commit 2e0c7925ec

View file

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