From 1144614e0162f2ff26c9127ff8b6d10132d77821 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Wed, 27 Mar 2019 11:22:00 +0530 Subject: Fix issue to upload and delete solution --- upload_code.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'upload_code.inc') 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, -- cgit From b32025aca1b725d36cce18a66f28409c8924f0cb Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Wed, 27 Mar 2019 11:51:31 +0530 Subject: Update column name in db query --- upload_code.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'upload_code.inc') 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, -- cgit From 9f21cf74562ec66b0b5699014fc720ac518e34b6 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Thu, 4 Apr 2019 11:52:26 +0530 Subject: Add help text for field in upload code form --- upload_code.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'upload_code.inc') diff --git a/upload_code.inc b/upload_code.inc index bced2f5..4dafe6c 100755 --- a/upload_code.inc +++ b/upload_code.inc @@ -186,9 +186,9 @@ function lab_migration_upload_code_form($form,$form_state) $form['code_caption'] = array( '#type' => 'textfield', '#title' => t('Caption'), + '#description' => t('For eg: Shell & Tube Heat Exchanger Simulation'), '#size' => 40, '#maxlength' => 255, - '#description' => t(''), '#required' => TRUE, ); $form['os_used'] = array( @@ -214,7 +214,7 @@ function lab_migration_upload_code_form($form,$form_state) ); $form['code_warning'] = array( '#type' => 'item', - '#title' => t('Upload all the dwsim project files in .zip format'), + '#title' => t('Upload all the dwsim project files in .dwxml/dwxmz format'), '#prefix' => '