diff --git a/web/run.php b/web/run.php index fe85b9e7..3b4acb77 100644 --- a/web/run.php +++ b/web/run.php @@ -59,6 +59,13 @@ $server = $servers[0]; } + # If this is not a task, or the server is not the embedded server, + # make sure that the data target is set to "database", because the data target + # may be stored in the user's session as "CSV" from a previous run + if ($configType !== 'task' || $server !== ServerConfig::EMBEDDED_SERVER_NAME) { + $dataTarget = DataTarget::DB; + } + #------------------------- # Set the submit value #------------------------- @@ -297,7 +304,7 @@