From b0aa07925c667119d475682793821aa4cd39ee39 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Mon, 15 Jun 2020 16:15:45 +0530 Subject: updated delete function --- pspice_to_kicad.module | 5 +---- 1 file changed, 1 insertion(+), 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(); -- cgit