diff options
author | Sashi20 | 2018-08-01 11:57:47 +0530 |
---|---|---|
committer | Sashi20 | 2018-08-01 11:57:47 +0530 |
commit | 318943b5e7f27abe710c0e5eef8e0cf35ab9b23a (patch) | |
tree | aa15d1a550103551c19a303de79810d6bce00647 /proposal.inc | |
parent | 8ea0e95416816333c762ee0845447cbbb207e8fd (diff) | |
download | cfd_case_study-318943b5e7f27abe710c0e5eef8e0cf35ab9b23a.tar.gz cfd_case_study-318943b5e7f27abe710c0e5eef8e0cf35ab9b23a.tar.bz2 cfd_case_study-318943b5e7f27abe710c0e5eef8e0cf35ab9b23a.zip |
Resolved warnings after submitting proposal
Diffstat (limited to 'proposal.inc')
-rwxr-xr-x | proposal.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/proposal.inc b/proposal.inc index 8c22858..6a9ce3a 100755 --- a/proposal.inc +++ b/proposal.inc @@ -441,9 +441,9 @@ function cfd_case_study_proposal_form_submit($form, &$form_state) //var_dump($result1->id);die; $query_pro = db_select('case_study_proposal'); $query_pro->fields('case_study_proposal'); - //$query_pro->condition('id', $proposal_data->id); + $query_pro->condition('id', $proposal_data->id); $abstracts_pro = $query_pro->execute()->fetchObject(); - $proposal_id = $query_pro->id; + $proposal_id = $abstracts_pro->id; $dest_path = $directory_name . '/'; $dest_path1 = $root_path . $dest_path; if (!is_dir($root_path . $dest_path)) @@ -496,7 +496,7 @@ function cfd_case_study_proposal_form_submit($form, &$form_state) ":approvar_uid" => 0, ":filename" => $_FILES['files']['name'][$file_form_name], ":filepath" => $_FILES['files']['name'][$file_form_name], - ":filemime" => mime_content_type($root_path . $dest_path_project_files . $_FILES['files']['name'][$file_form_name]), + ":filemime" => mime_content_type($root_path . $dest_path . $_FILES['files']['name'][$file_form_name]), ":filesize" => $_FILES['files']['size'][$file_form_name], ":filetype" => 'A', ":timestamp" => time() |