diff --git a/app/time_conditions/app_languages.php b/app/time_conditions/app_languages.php index 3076d60384..aeb6753a18 100644 --- a/app/time_conditions/app_languages.php +++ b/app/time_conditions/app_languages.php @@ -305,4 +305,13 @@ $text['message-add']['fr-fr'] = "Ajouté"; $text['message-add']['pt-pt'] = "Adição Efectuada"; + $text['confirm-delete']['en-us'] = "Do you really want to delete this?"; + $text['confirm-delete']['es-cl'] = "¿Realmente desea eliminar este?"; + $text['confirm-delete']['pt-pt'] = "Deseja realmente remover isto?"; + $text['confirm-delete']['fr-fr'] = "Voulez-vous vraiment supprimer cela?"; + + $text['message-delete']['en-us'] = "Delete Completed"; + $text['message-delete']['es-cl'] = "Eliminar Completado"; + $text['message-delete']['pt-pt'] = "Apagar Concluído"; + $text['message-delete']['fr-fr'] = "Supprimer Terminé"; ?> \ No newline at end of file diff --git a/app/time_conditions/time_condition_delete.php b/app/time_conditions/time_condition_delete.php index 10ade7ba99..9aacd039b1 100644 --- a/app/time_conditions/time_condition_delete.php +++ b/app/time_conditions/time_condition_delete.php @@ -51,13 +51,12 @@ else { $dialplan_uuid = check_str($dialplan_uuid); //get the dialplan data - $sql = "select * from v_dialplans "; + $sql = "select dialplan_context from v_dialplans "; $sql .= "where dialplan_uuid = '".$dialplan_uuid."' "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); foreach ($result as &$row) { - $database_dialplan_uuid = $row["dialplan_uuid"]; $dialplan_contexts[] = $row["dialplan_context"]; } unset($prep_statement); @@ -72,14 +71,15 @@ else { //delete child data $sql = "delete from v_dialplan_details "; - $sql .= "where dialplan_uuid = '".$dialplan_uuid."'; "; - $sql .= "and app_uuid = '4b821450-926b-175a-af93-a03c441818b1'; "; + $sql .= "where dialplan_uuid = '".$dialplan_uuid."' "; + $sql .= "and domain_uuid = '".$domain_uuid."'; "; $db->query($sql); unset($sql); //delete parent data $sql = "delete from v_dialplans "; - $sql .= "where dialplan_uuid = '".$dialplan_uuid."'; "; + $sql .= "where dialplan_uuid = '".$dialplan_uuid."' "; + $sql .= "and domain_uuid = '".$domain_uuid."' "; $sql .= "and app_uuid = '4b821450-926b-175a-af93-a03c441818b1'; "; $db->query($sql); unset($sql); diff --git a/app/time_conditions/time_condition_edit.php b/app/time_conditions/time_condition_edit.php index 03c6f242aa..3d439cc90e 100644 --- a/app/time_conditions/time_condition_edit.php +++ b/app/time_conditions/time_condition_edit.php @@ -721,7 +721,7 @@ echo " \n"; echo "