diff options
author | Sashi20 | 2019-03-28 11:35:54 +0530 |
---|---|---|
committer | Sashi20 | 2019-03-28 11:35:54 +0530 |
commit | 0b0bf588eab1157edae2e3a19758e3ca59308ec7 (patch) | |
tree | d610e81f24baf2c97c8192cbcc86d82d0ac5d6cc | |
parent | aaf08681bec4ee689d402700bc9e0e0f9aff7d1d (diff) | |
download | DWSIM_lab_migration-0b0bf588eab1157edae2e3a19758e3ca59308ec7.tar.gz DWSIM_lab_migration-0b0bf588eab1157edae2e3a19758e3ca59308ec7.tar.bz2 DWSIM_lab_migration-0b0bf588eab1157edae2e3a19758e3ca59308ec7.zip |
Modify code to check proposal id to delete experiment
-rwxr-xr-x | general_deletion.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/general_deletion.inc b/general_deletion.inc index baaec21..e6a9e04 100755 --- a/general_deletion.inc +++ b/general_deletion.inc @@ -150,7 +150,7 @@ function lab_migration_delete_experiment($experiment_id) $experiment_data = $experiment_q->fetchObject(); $query = db_select('lab_migration_proposal'); $query->fields('lab_migration_proposal'); - $query->condition('id', $form_state['values']['lab']); + $query->condition('id', $experiment_data->proposal_id); $proposal_q = $query->execute(); $proposal_data = $proposal_q->fetchObject(); if (!$experiment_data) |