mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-16403A - save state in portfolio before redirecting to steal control url.
This commit is contained in:
parent
74cd7b9303
commit
2e0c7925ec
1 changed files with 3 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue