diff options
author | Sashi20 | 2019-03-27 11:51:31 +0530 |
---|---|---|
committer | Sashi20 | 2019-03-27 11:51:31 +0530 |
commit | b32025aca1b725d36cce18a66f28409c8924f0cb (patch) | |
tree | 95e9c90b5bdb26be459468892241ece24f597d66 | |
parent | 1144614e0162f2ff26c9127ff8b6d10132d77821 (diff) | |
download | DWSIM_lab_migration_module-b32025aca1b725d36cce18a66f28409c8924f0cb.tar.gz DWSIM_lab_migration_module-b32025aca1b725d36cce18a66f28409c8924f0cb.tar.bz2 DWSIM_lab_migration_module-b32025aca1b725d36cce18a66f28409c8924f0cb.zip |
Update column name in db query
-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 be5bb59..bced2f5 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, 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, dwsim_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, |