@@ -20,9 +20,10 @@ class ConfigurationsController extends Controller
2020 public function index ()
2121 {
2222 $ configurations = Configuration::all ();
23- $ configurations_by_sections = ['init ' => [], 'email ' => [], 'tickets ' => [], 'perms ' => [], 'editor ' => [], 'other ' => []];
23+ $ configurations_by_sections = ['init ' => [], 'features ' => [], ' email ' => [], 'tickets ' => [], 'perms ' => [], 'editor ' => [], 'other ' => []];
2424 $ init_section = ['main_route ' , 'main_route_path ' , 'admin_route ' , 'admin_route_path ' , 'master_template ' , 'member_model_class ' , 'routes ' ];
25- $ email_section = ['status_notification ' , 'comment_notification ' , 'queue_emails ' , 'assigned_notification ' ,
25+ $ features_section = ['departments_feature ' , 'departments_notices_feature ' , 'ticket_attachments_feature ' ];
26+ $ email_section = ['status_notification ' , 'comment_notification ' , 'queue_emails ' , 'assigned_notification ' ,
2627 'list_owner_notification ' , 'status_owner_notification ' ,
2728 'email.template ' , 'email.owner.newticket.template ' , 'email.header ' , 'email.signoff ' , 'email.signature ' , 'email.dashboard ' ,
2829 'email.google_plus_link ' , 'email.facebook_link ' , 'email.twitter_link ' , 'email.footer ' , 'email.footer_link ' ,
@@ -43,14 +44,22 @@ public function index()
4344
4445 if (in_array ($ config_item ->slug , $ init_section )) {
4546 $ configurations_by_sections ['init ' ][] = $ config_item ;
47+
48+ } elseif (in_array ($ config_item ->slug , $ features_section )) {
49+ $ configurations_by_sections ['features ' ][] = $ config_item ;
50+
4651 } elseif (in_array ($ config_item ->slug , $ email_section )) {
4752 $ configurations_by_sections ['email ' ][] = $ config_item ;
53+
4854 } elseif (in_array ($ config_item ->slug , $ tickets_section )) {
4955 $ configurations_by_sections ['tickets ' ][] = $ config_item ;
56+
5057 } elseif (in_array ($ config_item ->slug , $ perms_section )) {
5158 $ configurations_by_sections ['perms ' ][] = $ config_item ;
59+
5260 } elseif (in_array ($ config_item ->slug , $ editor_section )) {
5361 $ configurations_by_sections ['editor ' ][] = $ config_item ;
62+
5463 } else {
5564 $ configurations_by_sections ['other ' ][] = $ config_item ;
5665 }
0 commit comments