Эх сурвалжийг харах

repaired previous errors inserted in r4614 : reinserted 'de-de' instead 'de' and correct files. keeps fr-ca to report in app_config.php files

Philippe Rioual 12 жил өмнө
parent
commit
493a476a26
1 өөрчлөгдсөн 123 нэмэгдсэн , 19 устгасан
  1. 123 19
      app_config.php

+ 123 - 19
app_config.php

@@ -9,7 +9,7 @@
 		$apps[$x]['contact_url'] = 'http://www.fusionpbx.com';
 		$apps[$x]['description']['en-us'] = 'Provides a place to store contact information for individuals and organizations.';
 		$apps[$x]['description']['es-mx'] = 'Provee un lugar para almacenar informacion de los contactos, para individuos u organizaciones';
-		$apps[$x]['description']['de'] = '';
+		$apps[$x]['description']['de-de'] = '';
 		$apps[$x]['description']['de-ch'] = '';
 		$apps[$x]['description']['de-at'] = '';
 		$apps[$x]['description']['fr-fr'] = "Place pour stocker les information des contacts, personnes ou organizations.";
@@ -21,7 +21,7 @@
 	//menu details
 		$apps[$x]['menu'][$y]['title']['en-us'] = 'Contacts';
 		$apps[$x]['menu'][$y]['title']['es-mx'] = 'Contactos';
-		$apps[$x]['menu'][$y]['title']['de'] = '';
+		$apps[$x]['menu'][$y]['title']['de-de'] = '';
 		$apps[$x]['menu'][$y]['title']['de-ch'] = '';
 		$apps[$x]['menu'][$y]['title']['de-at'] = '';
 		$apps[$x]['menu'][$y]['title']['fr-fr'] = 'Contacts';
@@ -38,23 +38,87 @@
 		$apps[$x]['menu'][$y]['groups'][] = 'superadmin';
 
 	//permission details
-		$apps[$x]['permissions'][0]['name'] = 'contacts_view';
-		$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
-		//$apps[$x]['permissions'][0]['groups'][] = 'user';
-		$apps[$x]['permissions'][0]['groups'][] = 'admin';
-
-		$apps[$x]['permissions'][1]['name'] = 'contacts_add';
-		$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
-		$apps[$x]['permissions'][1]['groups'][] = 'admin';
-
-		$apps[$x]['permissions'][2]['name'] = 'contacts_edit';
-		$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
-		$apps[$x]['permissions'][2]['groups'][] = 'admin';
-		//$apps[$x]['permissions'][2]['groups'][] = 'user';
-
-		$apps[$x]['permissions'][3]['name'] = 'contacts_delete';
-		$apps[$x]['permissions'][3]['groups'][] = 'superadmin';
-		$apps[$x]['permissions'][3]['groups'][] = 'admin';
+                $y = 0;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_view';
+                $apps[$x]['permissions'][$y]['menu']['uuid'] = 'f14e6ab6-6565-d4e6-cbad-a51d2e3e8ec6';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_add';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_edit';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_delete';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_address_view';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_address_add';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_address_edit';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_address_delete';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_phone_view';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_phone_add';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_phone_edit';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_phone_delete';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_note_view';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_note_add';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_note_edit';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_note_delete';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_group_view';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_group_add';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_group_edit';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
+                $y++;
+                $apps[$x]['permissions'][$y]['name'] = 'contact_group_delete';
+                $apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
+                $apps[$x]['permissions'][$y]['groups'][] = 'admin';
 
 	//schema details
 		$y = 0; //table array index
@@ -88,6 +152,15 @@
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
 		$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = 'true';
 		$z++;
+		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'contact_parent_uuid'; 		
+		$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid'; 		
+		$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text'; 		
+		$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)'; 		
+		$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign'; 		
+		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_contacts'; 		
+		$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'contact_uuid'; 		
+	 	$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ''; 		
+		$z++;
 		$apps[$x]['db'][$y]['fields'][$z]['name'] = 'contact_type';
 		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the type.';
@@ -317,4 +390,35 @@
 		$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
 		$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
 		$z++;
+
+                $y = 4; //table array index
+                $apps[$x]['db'][$y]['table'] = 'v_contact_groups';
+                $apps[$x]['db'][$y]['fields'][$z]['name'] = 'contact_groups_uuid';
+                $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
+                $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
+                $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
+                $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
+                $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
+                $z++;
+                $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
+                $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
+                $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
+                $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
+                $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
+                $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
+                $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
+                $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
+                $z++;
+                $apps[$x]['db'][$y]['fields'][$z]['name'] = 'contact_uuid';
+                $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
+                $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
+                $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
+                $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
+                $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_contacts';
+                $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'contact_uuid';
+                $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
+                $z++;
+                $apps[$x]['db'][$y]['fields'][$z]['name'] = 'group_name';
+                $apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
+                $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = '';
 ?>