mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 02:43:48 +00:00
Update extension_delete.php (#2314)
Delete the extension settings from v_follow_me and v_follow_me_destinations.
This commit is contained in:
@@ -60,6 +60,7 @@
|
||||
foreach ($extensions as &$row) {
|
||||
$extension = $row["extension"];
|
||||
$user_context = $row["user_context"];
|
||||
$follow_me_uuid = $row["follow_me_uuid"];
|
||||
}
|
||||
unset ($prep_statement);
|
||||
}
|
||||
@@ -133,6 +134,21 @@
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
unset($prep_statement, $sql);
|
||||
|
||||
//delete the follow-me
|
||||
$sql = "delete from v_follow_me_destinations ";
|
||||
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
||||
$sql .= "and follow_me_uuid = '".$follow_me_uuid."' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
unset($prep_statement, $sql);
|
||||
|
||||
$sql = "delete from v_follow_me ";
|
||||
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
||||
$sql .= "and follow_me_uuid = '".$follow_me_uuid."' ";
|
||||
$prep_statement = $db->prepare(check_sql($sql));
|
||||
$prep_statement->execute();
|
||||
unset($prep_statement, $sql);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user