summaryrefslogtreecommitdiff
path: root/general_deletion.inc
diff options
context:
space:
mode:
authorSashi202019-05-06 15:54:06 +0530
committerSashi202019-05-06 15:54:06 +0530
commitd72c96889df292a9911876d68abe51a19df5a33b (patch)
tree5b4bc7f642e72758dd39f9a7535155e1093654d3 /general_deletion.inc
parentb34eaf592792891d893ac06803b93c0d42b667b5 (diff)
downloadom_flowsheet-d72c96889df292a9911876d68abe51a19df5a33b.tar.gz
om_flowsheet-d72c96889df292a9911876d68abe51a19df5a33b.tar.bz2
om_flowsheet-d72c96889df292a9911876d68abe51a19df5a33b.zip
Add a new field to upload simulator package
Diffstat (limited to 'general_deletion.inc')
-rwxr-xr-xgeneral_deletion.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/general_deletion.inc b/general_deletion.inc
index 5912345..5982156 100755
--- a/general_deletion.inc
+++ b/general_deletion.inc
@@ -26,8 +26,9 @@ WHERE dfsa.id = :abstract_id", array(
while ($abstract_f_data = $abstract_f_q->fetchObject())
{
unlink($root_path . $abstract_data->directory_name . '/' . $abstract_f_data->filepath);
-
+ db_delete('om_flowsheet_submitted_abstracts_file')->condition('id', $abstract_f_data->id)->execute();
}
+
return True;
}
@@ -64,8 +65,8 @@ function om_flowsheet_abstract_delete_project($proposal_id)
{
$res_main = rmdir($dir_main_path);
} //is_dir($dir_main_path)
- db_delete('om_flowsheet_proposal')->condition('id', $proposal_data->id)->execute();
+
db_delete('om_flowsheet_submitted_abstracts')->condition('proposal_id', $proposal_data->id)->execute();
- db_delete('om_flowsheet_submitted_abstracts_file')->condition('id', $abstract_f_data->id)->execute();
+ db_delete('om_flowsheet_proposal')->condition('id', $proposal_data->id)->execute();
return $status;
} \ No newline at end of file