From 8e1fdbc4da1306e0f5696e3877c5f5115faa5890 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 15 Jul 2014 06:26:51 +0000 Subject: [PATCH] Update dialplan destinations --- app/destinations/app_languages.php | 6 +++--- app/destinations/destination_edit.php | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/destinations/app_languages.php b/app/destinations/app_languages.php index 323cd848e4..e1022cccc9 100644 --- a/app/destinations/app_languages.php +++ b/app/destinations/app_languages.php @@ -157,10 +157,10 @@ $text['label-accountcode']['pt-pt'] = "Codigo de cuenta"; $text['label-accountcode']['fr-fr'] = "Nom de client"; - $text['description-accountcode']['en-us'] = "Enter account code. This is use to keep track incase billing"; - $text['description-accountcode']['es-cl'] = "Ingrese el código de cuenta. Es utilizado en caso de usar la cobranza"; + $text['description-accountcode']['en-us'] = "Enter account code."; + $text['description-accountcode']['es-cl'] = "Ingrese el código de cuenta."; $text['description-accountcode']['pt-pt'] = ""; - $text['description-accountcode']['fr-fr'] = "Entrez nom de client. Il est utilisé en casu ou vous utilisez le billing"; + $text['description-accountcode']['fr-fr'] = "Entrez nom de client."; $text['label-carrier']['en-us'] = "Carrier name"; $text['label-carrier']['es-cl'] = "Nombre del carrier"; diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index f4e462cbca..a16f5f5de5 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -224,7 +224,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { $dialplan["dialplan_details"][$y]["dialplan_detail_order"] = $dialplan_detail_order; $y++; - //increment the dialplan detail order + //increment the dialplan detail order $dialplan_detail_order = $dialplan_detail_order + 10; } @@ -652,7 +652,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo $text['description-carrier']."\n"; echo "\n"; - if ($action == "add"){ $destination_accountcode=$_SESSION['domain_name'];} + //set the default account code + if ($action == "add") { $destination_accountcode=$_SESSION['domain_name']; } } echo "\n";