mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Fix typo in import.php
Fixed bug: Sample not importing due to new sample_var table structure
This commit is contained in:
@@ -61,7 +61,7 @@ if (isset($_POST['import_form']))
|
||||
}
|
||||
else
|
||||
{
|
||||
print -"<div class='alert alert-danger col-md-offset-2'><p>" . T_("Error importing file. Please try again") . "</p></div>";
|
||||
print "<div class='alert alert-danger col-md-offset-2'><p>" . T_("Error importing file. Please try again") . "</p></div>";
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -305,6 +305,7 @@ function import_file($file, $description, $fields, $firstrow = 2)
|
||||
VALUES (NULL,'$id','$tzone','$dppid')";
|
||||
|
||||
$db->Execute($sql);
|
||||
|
||||
$sid = $db->Insert_Id();
|
||||
|
||||
|
||||
@@ -315,8 +316,8 @@ function import_file($file, $description, $fields, $firstrow = 2)
|
||||
{
|
||||
$dkey = $db->Quote($data[$key - 1]);
|
||||
|
||||
$sql = "INSERT INTO sample_var (sample_id,var_id,var,val,type)
|
||||
VALUES ('$sid','{$sirv_id[$key]}','$val',{$dkey},'{$selected_type[$key]}')";
|
||||
$sql = "INSERT INTO sample_var (sample_id,var_id,val)
|
||||
VALUES ('$sid','{$sirv_id[$key]}',{$dkey})";
|
||||
|
||||
$db->Execute($sql);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user