diff options
author | Sashi20 | 2019-03-27 11:22:00 +0530 |
---|---|---|
committer | Sashi20 | 2019-03-27 11:22:00 +0530 |
commit | 1144614e0162f2ff26c9127ff8b6d10132d77821 (patch) | |
tree | ff3a2764eb0e109c82bd2aef8b1e92d2775d2c5e /upload_code.inc | |
parent | cbab3b0fef4c6cd1e163ab24eba1c2c4c0f64e5d (diff) | |
download | DWSIM_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-x | upload_code.inc | 2 |
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, |