summaryrefslogtreecommitdiff
path: root/manage_proposal.inc
diff options
context:
space:
mode:
authorSashi202019-10-03 12:30:24 +0530
committerGitHub2019-10-03 12:30:24 +0530
commit47d05336ab59b46d5aa51679c062859ecc5a2668 (patch)
treed4b4f5e274f7ef24fb664efa5c9ddd20652b3e9c /manage_proposal.inc
parentf54cc415a87352a39a64f65fe8a4354ae13efd9e (diff)
parent7459cf9390414648d6b571863c49fc4ee5f68d73 (diff)
downloadDWSIM_textbook_companion-47d05336ab59b46d5aa51679c062859ecc5a2668.tar.gz
DWSIM_textbook_companion-47d05336ab59b46d5aa51679c062859ecc5a2668.tar.bz2
DWSIM_textbook_companion-47d05336ab59b46d5aa51679c062859ecc5a2668.zip
Merge pull request #4 from Sashi20/php-v7
Display exp no in the error message on empty reason for disapproval
Diffstat (limited to 'manage_proposal.inc')
-rwxr-xr-xmanage_proposal.inc16
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(