Update number_translation_delete.php

This commit is contained in:
FusionPBX
2017-12-24 00:21:25 -07:00
committed by GitHub
parent 252ec8eae6
commit 42d31f17e5

View File

@@ -42,14 +42,12 @@
//delete the child data
$sql = "delete from v_number_translation_details ";
$sql .= "where number_translation_uuid = '".$id."' ";
//$sql .= "and domain_uuid = '".$domain_uuid."' ";
$prep_statement = $db->prepare($sql);
$prep_statement->execute();
//delete number_translation
$sql = "delete from v_number_translations ";
$sql .= "where number_translation_uuid = '$id' ";
$sql .= "and domain_uuid = '$domain_uuid' ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
unset($sql);
@@ -63,7 +61,6 @@
//select from v_number_translation_details
$sql = "select * from v_number_translation_details ";
$sql .= "where number_translation_detail_uuid = '".$_REQUEST["number_translation_detail_uuid"]."' ";
//$sql .= "and domain_uuid = '".$domain_uuid."' ";
$prep_statement = $db->prepare($sql);
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
@@ -75,7 +72,6 @@
//delete the row
$sql = "delete from v_number_translation_details ";
$sql .= "where number_translation_detail_uuid = '".$_REQUEST["number_translation_detail_uuid"]."' ";
//$sql .= "and domain_uuid = '".$domain_uuid."' ";
$prep_statement = $db->prepare($sql);
$prep_statement->execute();
@@ -83,5 +79,4 @@
header('Location: number_translation_edit.php?id='.$number_translation_uuid);
}
?>