From 0b0bf588eab1157edae2e3a19758e3ca59308ec7 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Thu, 28 Mar 2019 11:35:54 +0530 Subject: Modify code to check proposal id to delete experiment --- general_deletion.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit