summaryrefslogtreecommitdiff
path: root/upload_code.inc
diff options
context:
space:
mode:
authorSashi202019-03-27 11:22:00 +0530
committerSashi202019-03-27 11:22:00 +0530
commit1144614e0162f2ff26c9127ff8b6d10132d77821 (patch)
treeff3a2764eb0e109c82bd2aef8b1e92d2775d2c5e /upload_code.inc
parentcbab3b0fef4c6cd1e163ab24eba1c2c4c0f64e5d (diff)
downloadDWSIM_lab_migration-1144614e0162f2ff26c9127ff8b6d10132d77821.tar.gz
DWSIM_lab_migration-1144614e0162f2ff26c9127ff8b6d10132d77821.tar.bz2
DWSIM_lab_migration-1144614e0162f2ff26c9127ff8b6d10132d77821.zip
Fix issue to upload and delete solution
Diffstat (limited to 'upload_code.inc')
-rwxr-xr-xupload_code.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/upload_code.inc b/upload_code.inc
index bced2f5..be5bb59 100755
--- a/upload_code.inc
+++ b/upload_code.inc
@@ -503,7 +503,7 @@ function lab_migration_upload_code_form_submit($form, &$form_state) {
/* creating file path */
$file_path = 'EXP' . $experiment_data->number . '/' . 'CODE' . $experiment_data->number . '.' . $form_state['values']['code_number'] . '/';
/* creating solution database entry */
- $query = "INSERT INTO {lab_migration_solution} (experiment_id, approver_uid, code_number, caption, approval_date, approval_status, timestamp, os_used, dwsim_version, toolbox_used) VALUES (:experiment_id, :approver_uid, :code_number, :caption, :approval_date, :approval_status, :timestamp, :os_used, :dwsim_version, :toolbox_used)";
+ $query = "INSERT INTO {lab_migration_solution} (experiment_id, approver_uid, code_number, caption, approval_date, approval_status, timestamp, os_used, version, toolbox_used) VALUES (:experiment_id, :approver_uid, :code_number, :caption, :approval_date, :approval_status, :timestamp, :os_used, :dwsim_version, :toolbox_used)";
$args = array(
":experiment_id" => $experiment_id,
":approver_uid" => 0,