Update destinations.php
This commit is contained in:
parent
98f32c27a5
commit
51b7deec86
|
|
@ -299,6 +299,7 @@ class destinations {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//delete the checked rows
|
||||
if ($action == 'delete') {
|
||||
foreach($destinations as $row) {
|
||||
|
|
@ -310,16 +311,19 @@ class destinations {
|
|||
$prep_statement->execute();
|
||||
$destinations = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||
$row = $destinations[0];
|
||||
|
||||
//delete th dialplan
|
||||
$sql = "delete from v_dialplan_details ";
|
||||
$sql .= "where dialplan_uuid = '".$row['dialplan_uuid']."';";
|
||||
$this->db->query($sql);
|
||||
unset($sql);
|
||||
|
||||
//delete th dialplan
|
||||
$sql = "delete from v_dialplans ";
|
||||
$sql .= "where dialplan_uuid = '".$row['dialplan_uuid']."';";
|
||||
$this->db->query($sql);
|
||||
unset($sql);
|
||||
|
||||
//delete the destinations
|
||||
$sql = "delete from v_destinations ";
|
||||
$sql .= "where destination_uuid = '".$row['destination_uuid']."';";
|
||||
|
|
|
|||
Loading…
Reference in New Issue