Minor - Fix missing settings

pull/2487/head
Julio 7 years ago
parent fa87ef7d20
commit f897af6e48
  1. 1
      src/CoreBundle/Controller/Admin/SettingsController.php
  2. 2
      src/CoreBundle/Settings/AgendaSettingsSchema.php
  3. 1
      src/CoreBundle/Settings/DocumentSettingsSchema.php
  4. 1
      src/CoreBundle/Settings/SearchSettingsSchema.php
  5. 3
      src/SettingsBundle/Manager/SettingsManager.php

@ -85,7 +85,6 @@ class SettingsController extends SyliusSettingsController
$settings->remove($name);
}
}
$form->setData($settings);
$formList[$category] = $form->createView();
}

@ -46,7 +46,7 @@ class AgendaSettingsSchema extends AbstractSettingsSchema
public function buildForm(FormBuilderInterface $builder)
{
$builder
//->add('allow_personal_agenda', YesNoType::class)
->add('allow_personal_agenda', YesNoType::class)
//->add('display_mini_month_calendar', YesNoType::class)
->add('display_upcoming_events', YesNoType::class)
//->add('number_of_upcoming_events')

@ -81,6 +81,7 @@ class DocumentSettingsSchema extends AbstractSettingsSchema
public function buildForm(FormBuilderInterface $builder)
{
$builder
->add('allow_personal_user_files', YesNoType::class)
->add('default_document_quotum')
->add('default_group_quotum')
->add('permanently_remove_deleted_files', YesNoType::class)

@ -29,7 +29,6 @@ class SearchSettingsSchema extends AbstractSettingsSchema
]
);
$allowedTypes = [
//'allow_personal_agenda' => array('string'),
'number_of_upcoming_events' => ['string'],
];
$this->setMultipleAllowedTypes($allowedTypes, $builder);

@ -168,7 +168,7 @@ class SettingsManager implements SettingsManagerInterface
'allow_registration_as_teacher' => 'Platform',
'allow_lostpassword' => 'Platform',
'allow_user_headings' => 'Course',
'allow_personal_agenda' => 'User',
'allow_personal_agenda' => 'agenda',
'display_coursecode_in_courselist' => 'Platform',
'display_teacher_in_courselist' => 'Platform',
'permanently_remove_deleted_files' => 'Tools',
@ -719,6 +719,7 @@ class SettingsManager implements SettingsManagerInterface
foreach ($settingsBuilder->getTransformers() as $parameter => $transformer) {
if (array_key_exists($parameter, $parameters)) {
$parameters[$parameter] = $transformer->reverseTransform($parameters[$parameter]);
}
}

Loading…
Cancel
Save