diff options
author | Sashi20 | 2019-09-27 11:59:31 +0530 |
---|---|---|
committer | Sashi20 | 2019-09-27 11:59:31 +0530 |
commit | 3269185ed27dcde5441dc5bab5adeabd838f8557 (patch) | |
tree | a8c8985b615f838a829db59ad9171eac78f4a478 /manage_proposal.inc | |
parent | f54cc415a87352a39a64f65fe8a4354ae13efd9e (diff) | |
download | DWSIM_textbook_companion-3269185ed27dcde5441dc5bab5adeabd838f8557.tar.gz DWSIM_textbook_companion-3269185ed27dcde5441dc5bab5adeabd838f8557.tar.bz2 DWSIM_textbook_companion-3269185ed27dcde5441dc5bab5adeabd838f8557.zip |
Fix enable code submission function and mandate reason for disapproval in code approval
Diffstat (limited to 'manage_proposal.inc')
-rwxr-xr-x | manage_proposal.inc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/manage_proposal.inc b/manage_proposal.inc index 78a6312..4cba708 100755 --- a/manage_proposal.inc +++ b/manage_proposal.inc @@ -810,15 +810,15 @@ function proposal_status_form_submit($form, &$form_state) $query->fields(array( 'submited_all_examples_code' => 0 )); - $query->condition('id', $proposal_id); - $num_updated = $query->execute(); + $query->condition('proposal_id', $proposal_id); + $num_updated = $query->execute(); /* sending email */ - $book_user = user_load($proposal_data->uid); - $email_to = $book_user->mail; - $from = variable_get('textbook_companion_from_email', ''); - $bcc = variable_get('textbook_companion_bcc_emails', ''); - $cc = variable_get('textbook_companion_cc_emails', ''); - $book_user = user_load($proposal_data->uid); + $book_user = user_load($proposal_data->uid); + $email_to = $book_user->mail; + $from = variable_get('textbook_companion_from_email', ''); + $bcc = variable_get('textbook_companion_bcc_emails', ''); + $cc = variable_get('textbook_companion_cc_emails', ''); + $book_user = user_load($proposal_data->uid); $params['all_code_submitted_status_changed']['proposal_id'] = $proposal_id; $params['all_code_submitted_status_changed']['user_id'] = $proposal_data->uid; $params['all_code_submitted_status_changed']['headers'] = array( |