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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

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