diff options
author | prashantsinalkar | 2020-06-15 16:15:45 +0530 |
---|---|---|
committer | prashantsinalkar | 2020-06-15 16:15:45 +0530 |
commit | b0aa07925c667119d475682793821aa4cd39ee39 (patch) | |
tree | fde308a37dbda10ea8dfbc42a2757aa527f42bd6 /pspice_to_kicad.module | |
parent | ba7013f58b0d8348ae1502f0e45c646c9faa3470 (diff) | |
download | Esim-Pspice-to-kicad-convertor-b0aa07925c667119d475682793821aa4cd39ee39.tar.gz Esim-Pspice-to-kicad-convertor-b0aa07925c667119d475682793821aa4cd39ee39.tar.bz2 Esim-Pspice-to-kicad-convertor-b0aa07925c667119d475682793821aa4cd39ee39.zip |
updated delete function
Diffstat (limited to 'pspice_to_kicad.module')
-rwxr-xr-x | pspice_to_kicad.module | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pspice_to_kicad.module b/pspice_to_kicad.module index 7764cb9..95828fc 100755 --- a/pspice_to_kicad.module +++ b/pspice_to_kicad.module @@ -1115,7 +1115,6 @@ function pspice_to_kicad_delete_file() $querycheck = db_select('custom_kicad_convertor'); $querycheck->fields('custom_kicad_convertor'); $querycheck->condition('id', $fileid); - $querycheck->condition('converted_flag', "1"); $resultcheck = $querycheck->execute(); $number_of_rows = $resultcheck->rowCount(); @@ -1128,7 +1127,7 @@ function pspice_to_kicad_delete_file() } else { - drupal_set_message('Already converted file cannot be delete.', 'error'); + drupal_set_message('File can not be deleted. Please contact to site administrator', 'error'); drupal_goto("pspice-to-kicad/convert"); return; } @@ -1141,7 +1140,6 @@ function pspice_to_kicad_delete_file_form($form, &$form_state, $fileid) $querycheck = db_select('custom_kicad_convertor'); $querycheck->fields('custom_kicad_convertor'); $querycheck->condition('id', $fileid); - $querycheck->condition('converted_flag', "1"); $resultcheck = $querycheck->execute(); $number_of_rows = $resultcheck->rowCount(); @@ -1191,7 +1189,6 @@ function pspice_to_kicad_delete_file_form_submit($form, &$form_state) $querycheck = db_select('custom_kicad_convertor'); $querycheck->fields('custom_kicad_convertor'); $querycheck->condition('id', $fileid); - $querycheck->condition('converted_flag', "1"); $resultcheck = $querycheck->execute(); $row = $resultcheck->fetchObject(); |