From 330d1f529bd3f90f1ecb3fb153859a924be5839d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 15 Feb 2017 21:20:08 -0700 Subject: [PATCH] Update app_config.php --- core/menu/app_config.php | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/core/menu/app_config.php b/core/menu/app_config.php index 31e123e912..85af66469d 100644 --- a/core/menu/app_config.php +++ b/core/menu/app_config.php @@ -19,7 +19,7 @@ $apps[$x]['description']['pt-br'] = ""; //permission details - $y = 0; + $y=0; $apps[$x]['permissions'][$y]['name'] = "menu_view"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; $y++; @@ -72,9 +72,10 @@ $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; //schema details - $y = 0; //table array index - $z = 0; //field array index - $apps[$x]['db'][$y]['table'] = "v_menus"; + $y=0; + $apps[$x]['db'][$y]['table']['name'] = "v_menus"; + $apps[$x]['db'][$y]['table']['parent'] = ""; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id"; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "menu_id"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial"; @@ -104,9 +105,10 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description."; $z++; - $y = 1; //table array index - $z = 0; //field array index - $apps[$x]['db'][$y]['table'] = "v_menu_items"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_menu_items"; + $apps[$x]['db'][$y]['table']['parent'] = "v_menus"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id"; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "menu_item_id"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial"; @@ -186,9 +188,10 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; - $y = 2; //table array index - $z = 0; //field array index - $apps[$x]['db'][$y]['table'] = "v_menu_item_groups"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_menu_item_groups"; + $apps[$x]['db'][$y]['table']['parent'] = "v_menu_items"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id"; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "menu_group_name"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "serial"; @@ -238,9 +241,10 @@ $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "group_uuid"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; - $y = 3; //table array index - $z = 0; //field array index - $apps[$x]['db'][$y]['table'] = "v_menu_languages"; + $y++; + $apps[$x]['db'][$y]['table']['name'] = "v_menu_languages"; + $apps[$x]['db'][$y]['table']['parent'] = "v_menus"; + $z=0; $apps[$x]['db'][$y]['fields'][$z]['name'] = "menu_language_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text";