diff options
author | Jérémy Benoist <j0k3r@users.noreply.github.com> | 2017-05-05 07:01:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-05 07:01:28 +0200 |
commit | 6603a9d649bc3319694f35dff021f935681a44ad (patch) | |
tree | 046079e6c76fb365a4e7fb4064d2229fbdf3465b /src/Wallabag/CoreBundle/Form/Type/ConfigType.php | |
parent | a7c8f5457014f5dd6370323e9aad61d0d08848ee (diff) | |
parent | ab9eb5cdb767510c0c2b9d1b114243741f748f89 (diff) | |
download | wallabag-6603a9d649bc3319694f35dff021f935681a44ad.tar.gz wallabag-6603a9d649bc3319694f35dff021f935681a44ad.tar.zst wallabag-6603a9d649bc3319694f35dff021f935681a44ad.zip |
Merge pull request #3082 from aaa2000/fix-form-errors-display
Fix display the form errors correctly
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/ConfigType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/ConfigType.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php index 7e3b9dd4..1714ce74 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php | |||
@@ -39,9 +39,11 @@ class ConfigType extends AbstractType | |||
39 | ]) | 39 | ]) |
40 | ->add('items_per_page', null, [ | 40 | ->add('items_per_page', null, [ |
41 | 'label' => 'config.form_settings.items_per_page_label', | 41 | 'label' => 'config.form_settings.items_per_page_label', |
42 | 'property_path' => 'itemsPerPage', | ||
42 | ]) | 43 | ]) |
43 | ->add('reading_speed', ChoiceType::class, [ | 44 | ->add('reading_speed', ChoiceType::class, [ |
44 | 'label' => 'config.form_settings.reading_speed.label', | 45 | 'label' => 'config.form_settings.reading_speed.label', |
46 | 'property_path' => 'readingSpeed', | ||
45 | 'choices' => [ | 47 | 'choices' => [ |
46 | 'config.form_settings.reading_speed.100_word' => '0.5', | 48 | 'config.form_settings.reading_speed.100_word' => '0.5', |
47 | 'config.form_settings.reading_speed.200_word' => '1', | 49 | 'config.form_settings.reading_speed.200_word' => '1', |
@@ -51,6 +53,7 @@ class ConfigType extends AbstractType | |||
51 | ]) | 53 | ]) |
52 | ->add('action_mark_as_read', ChoiceType::class, [ | 54 | ->add('action_mark_as_read', ChoiceType::class, [ |
53 | 'label' => 'config.form_settings.action_mark_as_read.label', | 55 | 'label' => 'config.form_settings.action_mark_as_read.label', |
56 | 'property_path' => 'actionMarkAsRead', | ||
54 | 'choices' => [ | 57 | 'choices' => [ |
55 | 'config.form_settings.action_mark_as_read.redirect_homepage' => Config::REDIRECT_TO_HOMEPAGE, | 58 | 'config.form_settings.action_mark_as_read.redirect_homepage' => Config::REDIRECT_TO_HOMEPAGE, |
56 | 'config.form_settings.action_mark_as_read.redirect_current_page' => Config::REDIRECT_TO_CURRENT_PAGE, | 59 | 'config.form_settings.action_mark_as_read.redirect_current_page' => Config::REDIRECT_TO_CURRENT_PAGE, |
@@ -61,6 +64,7 @@ class ConfigType extends AbstractType | |||
61 | 'label' => 'config.form_settings.language_label', | 64 | 'label' => 'config.form_settings.language_label', |
62 | ]) | 65 | ]) |
63 | ->add('pocket_consumer_key', null, [ | 66 | ->add('pocket_consumer_key', null, [ |
67 | 'property_path' => 'pocketConsumerKey', | ||
64 | 'label' => 'config.form_settings.pocket_consumer_key_label', | 68 | 'label' => 'config.form_settings.pocket_consumer_key_label', |
65 | ]) | 69 | ]) |
66 | ->add('save', SubmitType::class, [ | 70 | ->add('save', SubmitType::class, [ |