Skip to content

Commit

Permalink
Fixed data target issue on run page
Browse files Browse the repository at this point in the history
  • Loading branch information
mullen2 committed Feb 4, 2022
1 parent 8505fe7 commit 771f0c2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web/run.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
#-------------------------
Expand Down Expand Up @@ -297,7 +304,7 @@

<!-- DATA TARGET -->
<?php
if ($configType === 'task' && $server === $serverConfig::EMBEDDED_SERVER_NAME) {
if ($configType === 'task' && $server === ServerConfig::EMBEDDED_SERVER_NAME) {
echo '
<div style="float: left; margin-bottom: 22px; margin-left: 2em">
<select name="dataTarget" id="dataTarget" style="margin-left: 1em;">
Expand Down

0 comments on commit 771f0c2

Please sign in to comment.