diff options
author | Sashi20 | 2021-08-31 12:08:08 +0530 |
---|---|---|
committer | Sashi20 | 2021-08-31 12:08:08 +0530 |
commit | 5ae18f6c52f81de8d2017eed4f5ae60e0026c57f (patch) | |
tree | 221e1ceed14c0a09e9ad0ab189053a352c2cf9eb /proposal.inc | |
parent | bce18b6c1950b107e445106b99d1e9315e93866a (diff) | |
download | cfd_lab_migration-5ae18f6c52f81de8d2017eed4f5ae60e0026c57f.tar.gz cfd_lab_migration-5ae18f6c52f81de8d2017eed4f5ae60e0026c57f.tar.bz2 cfd_lab_migration-5ae18f6c52f81de8d2017eed4f5ae60e0026c57f.zip |
Update solution provider fields in proposal form, fix lab deletion in bulk manage
Diffstat (limited to 'proposal.inc')
-rwxr-xr-x | proposal.inc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/proposal.inc b/proposal.inc index bd35d39..720d1a7 100755 --- a/proposal.inc +++ b/proposal.inc @@ -404,6 +404,10 @@ function lab_migration_proposal_form_submit($form, &$form_state) $solution_provider_contact_ph = ''; $solution_provider_department = ''; $solution_provider_university = ''; + $solution_provider_city = ''; + $solution_provider_country = ''; + $solution_provider_state = ''; + $solution_provider_pincode = ''; if ($form_state['values']['solution_provider_uid'] == "1") { $solution_provider_uid = $user->uid; @@ -413,6 +417,10 @@ function lab_migration_proposal_form_submit($form, &$form_state) $solution_provider_contact_ph = $form_state['values']['contact_ph']; $solution_provider_department = $form_state['values']['department']; $solution_provider_university = $form_state['values']['university']; + $solution_provider_city = $form_state['values']['city']; + $solution_provider_country = $form_state['values']['country']; + $solution_provider_state = $form_state['values']['all_state']; + $solution_provider_pincode = $form_state['values']['pincode']; } else { @@ -434,11 +442,11 @@ function lab_migration_proposal_form_submit($form, &$form_state) $university = $v['university']; $directory_name = _lm_dir_name($lab_title, $proposar_name, $university); $result = "INSERT INTO {lab_migration_proposal} - (uid, approver_uid, name_title, name, contact_ph, department, university, city, pincode, state, country, version, lab_title, approval_status, solution_status, solution_provider_uid, solution_display, creation_date, approval_date, solution_date, solution_provider_name_title, solution_provider_name, solution_provider_contact_ph, solution_provider_department, solution_provider_university, directory_name) VALUES + (uid, approver_uid, name_title, name, contact_ph, department, university, city, pincode, state, country, version, lab_title, approval_status, solution_status, solution_provider_uid, solution_display, creation_date, approval_date, solution_date, solution_provider_name_title, solution_provider_name, solution_provider_contact_ph, solution_provider_department, solution_provider_university, solution_provider_city, solution_provider_country, solution_provider_state, solution_provider_pincode, directory_name) VALUES (:uid, :approver_uid, :name_title, :name, :contact_ph, :department, :university, :city, :pincode, :state, :country, :version, :lab_title, :approval_status, :solution_status, :solution_provider_uid, :solution_display, :creation_date, :approval_date, :solution_date, :solution_provider_name_title, :solution_provider_name, - :solution_provider_contact_ph, :solution_provider_department, :solution_provider_university, :directory_name)"; + :solution_provider_contact_ph, :solution_provider_department, :solution_provider_university, :solution_provider_city, :solution_provider_country, :solution_provider_state, :solution_provider_pincode, :directory_name)"; $args = array( ":uid" => $user->uid, ":approver_uid" => 0, @@ -465,6 +473,10 @@ function lab_migration_proposal_form_submit($form, &$form_state) ":solution_provider_contact_ph" => $solution_provider_contact_ph, ":solution_provider_department" => $solution_provider_department, ":solution_provider_university" => $solution_provider_university, + ":solution_provider_city" => $solution_provider_city, + ":solution_provider_country" => $solution_provider_country, + ":solution_provider_state" => $solution_provider_state, + ":solution_provider_pincode" => $solution_provider_pincode, ":directory_name" => $directory_name ); $proposal_id = db_query($result, $args, array( |