diff options
author | adev <adev2000@gmail.com> | 2017-05-05 00:12:16 +0200 |
---|---|---|
committer | adev <adev2000@gmail.com> | 2017-05-05 00:12:16 +0200 |
commit | ab9eb5cdb767510c0c2b9d1b114243741f748f89 (patch) | |
tree | e57d1509ea0cb3f38dccc3e9247c065a377d40d7 /src/Wallabag/CoreBundle/Form/Type/RssType.php | |
parent | 9579003045970d4feed9de955fe939d4f02fe439 (diff) | |
download | wallabag-ab9eb5cdb767510c0c2b9d1b114243741f748f89.tar.gz wallabag-ab9eb5cdb767510c0c2b9d1b114243741f748f89.tar.zst wallabag-ab9eb5cdb767510c0c2b9d1b114243741f748f89.zip |
Fix display the form errors correctly
Use `property_path` form option to map underscored form fields
to object properties
@see https://github.com/symfony/symfony/issues/9162#issuecomment-25431148
Fix #3067
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/RssType.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Form/Type/RssType.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/RssType.php b/src/Wallabag/CoreBundle/Form/Type/RssType.php index 94324fed..49b31c1e 100644 --- a/src/Wallabag/CoreBundle/Form/Type/RssType.php +++ b/src/Wallabag/CoreBundle/Form/Type/RssType.php | |||
@@ -14,6 +14,7 @@ class RssType extends AbstractType | |||
14 | $builder | 14 | $builder |
15 | ->add('rss_limit', null, [ | 15 | ->add('rss_limit', null, [ |
16 | 'label' => 'config.form_rss.rss_limit', | 16 | 'label' => 'config.form_rss.rss_limit', |
17 | 'property_path' => 'rssLimit', | ||
17 | ]) | 18 | ]) |
18 | ->add('save', SubmitType::class, [ | 19 | ->add('save', SubmitType::class, [ |
19 | 'label' => 'config.form.save', | 20 | 'label' => 'config.form.save', |