Skip to content

Commit a1a74d6

Browse files
committed
Internal: Remove show_tabs settings from PlatformSettingsSchema
show_tabs belongs to DisplaySettingsSchema
1 parent a5d1513 commit a1a74d6

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/CoreBundle/Settings/PlatformSettingsSchema.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public function buildSettings(AbstractSettingsBuilder $builder): void
4949
'allow_my_files' => 'true',
5050
'registered' => 'false',
5151
'server_type' => 'prod',
52-
'show_tabs' => array_values(array_diff(self::$tabs, ['videoconference', 'diagnostics'])),
5352
'chamilo_database_version' => '2.0.0',
5453
'unoconv_binaries' => '/usr/bin/unoconv',
5554
'pdf_img_dpi' => '96',
@@ -70,18 +69,13 @@ public function buildSettings(AbstractSettingsBuilder $builder): void
7069
'disable_copy_paste' => 'false',
7170
]
7271
)
73-
->setTransformer(
74-
'show_tabs',
75-
new ArrayToIdentifierTransformer()
76-
)
7772
;
7873

7974
$allowedTypes = [
8075
'institution' => ['string'],
8176
'institution_url' => ['string'],
8277
'site_name' => ['string'],
8378
'timezone' => ['string'],
84-
'show_tabs' => ['array', 'null'],
8579
];
8680

8781
$this->setMultipleAllowedTypes($allowedTypes, $builder);
@@ -111,14 +105,6 @@ public function buildForm(FormBuilderInterface $builder): void
111105
],
112106
]
113107
)
114-
->add(
115-
'show_tabs',
116-
ChoiceType::class,
117-
[
118-
'multiple' => true,
119-
'choices' => self::$tabs,
120-
],
121-
)
122108
->add('unoconv_binaries', TextType::class)
123109
->add('pdf_img_dpi', TextType::class)
124110
->add('hosting_limit_users_per_course', TextType::class)

0 commit comments

Comments
 (0)