Destinations - Add ability to set condition field on per destination (#5301)

* Update destination_edit.php

* Update app_languages.php

* Update app_config.php
This commit is contained in:
agree
2020-06-10 23:07:12 -06:00
committed by GitHub
parent 4b405f6b9b
commit 47c8ceb521
3 changed files with 78 additions and 3 deletions
+7
View File
@@ -82,6 +82,9 @@
$apps[$x]['permissions'][$y]['name'] = "destination_number";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$y++;
$apps[$x]['permissions'][$y]['name'] = "destination_condition_field";
//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$y++;
$apps[$x]['permissions'][$y]['name'] = "destination_caller_id_name";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$y++;
@@ -174,6 +177,10 @@
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the prefix.";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "destination_condition_field";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the condition.";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "destination_number_regex";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Regular Expression version of destination number";