diff --git a/docs/CUSTOM_FIELDS.txt b/docs/CUSTOM_FIELDS.txt index 9bd083fb..31d5c4ca 100644 --- a/docs/CUSTOM_FIELDS.txt +++ b/docs/CUSTOM_FIELDS.txt @@ -46,6 +46,13 @@ New settings will be added in the astguiclient.conf file for DB_custom_user and +Admin changes: + +Added admin_lists_custom.php for these features to be administered. This will allow the viewing of custom fields as well as the copying of custom field definitions to lists with no custom fields. + + + + MySQL tables: diff --git a/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt b/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt index 1ec57904..25c33939 100644 --- a/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt +++ b/translations/raw_translation_files/TO_BE_TRANSLATED_2.4.txt @@ -165,6 +165,11 @@ Option Position|| For CHECKBOX and RADIO field types only, if set to HORIZONTAL the options will appear on the same line possibly wrapping to the line below if there are many options. If set to VERTICAL there will be only one option per line. Default is HORIZONTAL|| Hold Time Option Minimum|| If Hold Time Option enabled, this is the minimum number of seconds the call must be waiting before it will be presented with the hold time option. The hold time option will immediately be presented at this time if the estimated hold time is greater than the Hold Time Option Seconds value. Default is 0 seconds|| +ADDING COPIED CARRIER|| +ADD COPIED CARRIER|| +Source Carrier|| +COPIED CARRIER ADDED|| +Copy A Carrier|| AST_VICIDIAL_ingrouplist.php diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php index dfca51f2..61e39017 100644 --- a/www/vicidial/admin.php +++ b/www/vicidial/admin.php @@ -1253,6 +1253,8 @@ if (isset($_GET["custom_fields_modify"])) {$custom_fields_modify=$_GET["custom elseif (isset($_POST["custom_fields_modify"])) {$custom_fields_modify=$_POST["custom_fields_modify"];} if (isset($_GET["hold_time_option_minimum"])) {$hold_time_option_minimum=$_GET["hold_time_option_minimum"];} elseif (isset($_POST["hold_time_option_minimum"])) {$hold_time_option_minimum=$_POST["hold_time_option_minimum"];} +if (isset($_GET["source_carrier"])) {$source_carrier=$_GET["source_carrier"];} + elseif (isset($_POST["source_carrier"])) {$source_carrier=$_POST["source_carrier"];} if (isset($script_id)) {$script_id= strtoupper($script_id);} @@ -1725,6 +1727,7 @@ if ($non_latin < 1) $cpd_amd_action = ereg_replace("[^-_0-9a-zA-Z]","",$cpd_amd_action); $template_id = ereg_replace("[^-_0-9a-zA-Z]","",$template_id); $carrier_id = ereg_replace("[^-_0-9a-zA-Z]","",$carrier_id); + $source_carrier = ereg_replace("[^-_0-9a-zA-Z]","",$source_carrier); $group_alias_id = ereg_replace("[^-_0-9a-zA-Z]","",$group_alias_id); $default_group_alias = ereg_replace("[^-_0-9a-zA-Z]","",$default_group_alias); $vtiger_search_dead = ereg_replace("[^-_0-9a-zA-Z]","",$vtiger_search_dead); @@ -2197,7 +2200,7 @@ else # 100420-1010 - Added scheduled_callbacks_count campaign option # 100423-1030 - Added realtime_block_user_info, manual dial campaign, blind monitor warnings, in-group callid, phones codecs features # 100506-1807 - Added hidden settings for lists custom fields -# 100507-1102 - Added hold_time_option_minimum option to in-groups +# 100507-1102 - Added hold_time_option_minimum option to in-groups and copy carrier function # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 8 to access this page the first time @@ -2392,6 +2395,7 @@ if ($ADD==13111111111) {$hh='admin'; $sh='phones'; echo "ADD NEW GROUP ALIAS";} if ($ADD==111111111111) {$hh='admin'; $sh='server'; echo "ADD NEW SERVER";} if ($ADD==131111111111) {$hh='admin'; $sh='templates'; echo "ADD NEW CONF TEMPLATE";} if ($ADD==141111111111) {$hh='admin'; $sh='carriers'; echo "ADD NEW CARRIER";} +if ($ADD==140111111111) {$hh='admin'; $sh='carriers'; echo "ADD COPIED CARRIER";} if ($ADD==151111111111) {$hh='admin'; $sh='tts'; echo "ADD NEW TTS ENTRY";} if ($ADD==161111111111) {$hh='admin'; $sh='moh'; echo "ADD NEW MUSIC ON HOLD ENTRY";} if ($ADD==171111111111) {$hh='admin'; $sh='vm'; echo "ADD NEW VOICEMAIL BOX";} @@ -2430,6 +2434,7 @@ if ($ADD==211111111111) {$hh='admin'; $sh='server'; echo "ADDING NEW SERVER";} if ($ADD==221111111111) {$hh='admin'; $sh='server'; echo "ADDING NEW SERVER VICIDIAL TRUNK RECORD";} if ($ADD==231111111111) {$hh='admin'; $sh='templates'; echo "ADDING NEW CONF TEMPLATE";} if ($ADD==241111111111) {$hh='admin'; $sh='carriers'; echo "ADDING NEW CARRIER";} +if ($ADD==240111111111) {$hh='admin'; $sh='carriers'; echo "ADDING COPIED CARRIER";} if ($ADD==251111111111) {$hh='admin'; $sh='tts'; echo "ADDING NEW TTS ENTRY";} if ($ADD==261111111111) {$hh='admin'; $sh='moh'; echo "ADDING NEW MUSIC ON HOLD ENTRY";} if ($ADD==271111111111) {$hh='admin'; $sh='vm'; echo "ADDING NEW VOICEMAIL BOX";} @@ -8260,6 +8265,70 @@ if ($ADD==141111111111) } +###################### +# ADD=140111111111 display the ADD COPIED CARRIER SCREEN +###################### + +if ($ADD==140111111111) + { + if ($LOGmodify_servers==1) + { + echo "
| \n";
+ echo "";
+
+ echo " ADD COPIED CARRIER |