From e3526deb41879cba3f0bf5e62f0bc9f25b283a00 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 11 Jun 2016 09:04:42 -0600 Subject: [PATCH] Update app_config.php Change call_flow_sound_on to call_flow_sound. Call flow anti to alternate and call_flow_sound_off to call_flow_alternate_sound. This changes make it more consistent with the front end. For the few developers that have the call_flow_sound_on and call_flow_sound off I offer the these alter table statements. ALTER TABLE v_call_flows RENAME COLUMN call_flow_sound_on to call_flow_sound; ALTER TABLE v_call_flows RENAME COLUMN call_flow_sound_off to call_flow_alternate_sound; --- app/call_flows/app_config.php | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/app/call_flows/app_config.php b/app/call_flows/app_config.php index 475f61b1c0..4921b68e67 100644 --- a/app/call_flows/app_config.php +++ b/app/call_flows/app_config.php @@ -108,6 +108,10 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Enter the label."; $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "call_flow_sound"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Select the sound."; + $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "call_flow_app"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Enter the application."; @@ -116,28 +120,27 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Enter the application data."; $z++; - $apps[$x]['db'][$y]['fields'][$z]['name'] = "call_flow_anti_label"; + $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_flow_alternate_label"; + $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "call_flow_anti_label"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Enter the alternate label."; $z++; - $apps[$x]['db'][$y]['fields'][$z]['name'] = "call_flow_anti_app"; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "call_flow_alternate_sound"; + $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Select the alternate sound."; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_flow_alternate_app"; + $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "call_flow_anti_app"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Enter the alternate application."; $z++; - $apps[$x]['db'][$y]['fields'][$z]['name'] = "call_flow_anti_data"; + $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "call_flow_alternate_data"; + $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "call_flow_anti_data"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Enter the alernate application data."; $z++; $apps[$x]['db'][$y]['fields'][$z]['name'] = "call_flow_description"; $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Enter the description."; - $z++; - $apps[$x]['db'][$y]['fields'][$z]['name'] = "call_flow_sound_on"; - $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; - $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Select the sound when on."; - $z++; - $apps[$x]['db'][$y]['fields'][$z]['name'] = "call_flow_sound_off"; - $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; - $apps[$x]['db'][$y]['fields'][$z]['description']['en'] = "Select the sound when off."; - $z++; + ?>