From 2e0c7925ec8185998cb2bed082a3252d8b121182 Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Tue, 9 Sep 2008 14:08:59 +0000 Subject: [PATCH] MDL-16403A - save state in portfolio before redirecting to steal control url. --- lib/portfolio/exporter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/portfolio/exporter.php b/lib/portfolio/exporter.php index cb73207751..e4842f5a14 100644 --- a/lib/portfolio/exporter.php +++ b/lib/portfolio/exporter.php @@ -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'); -- 2.39.5