mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
delete contact settings support as well
This commit is contained in:
@@ -78,6 +78,16 @@ if (strlen($id)>0) {
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
unset($prep_statement, $sql);
|
||||
|
||||
//delete settings
|
||||
|
||||
$sql = "";
|
||||
$sql = "delete from v_contact_settings ";
|
||||
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
||||
$sql .= "and contact_uuid = '$id' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
unset($prep_statement, $sql);
|
||||
}
|
||||
|
||||
|
||||
@@ -85,4 +95,4 @@ $_SESSION["message"] = $text['message-delete'];
|
||||
header("Location: contacts.php");
|
||||
return;
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user