aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php
diff options
context:
space:
mode:
authoradev <adev2000@gmail.com>2017-05-05 00:12:16 +0200
committeradev <adev2000@gmail.com>2017-05-05 00:12:16 +0200
commitab9eb5cdb767510c0c2b9d1b114243741f748f89 (patch)
treee57d1509ea0cb3f38dccc3e9247c065a377d40d7 /src/Wallabag/CoreBundle/Form/Type/EditEntryType.php
parent9579003045970d4feed9de955fe939d4f02fe439 (diff)
downloadwallabag-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/EditEntryType.php')
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/EditEntryType.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php
index 40e5b5b9..c3715646 100644
--- a/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php
+++ b/src/Wallabag/CoreBundle/Form/Type/EditEntryType.php
@@ -21,6 +21,7 @@ class EditEntryType extends AbstractType
21 ->add('is_public', CheckboxType::class, [ 21 ->add('is_public', CheckboxType::class, [
22 'required' => false, 22 'required' => false,
23 'label' => 'entry.edit.is_public_label', 23 'label' => 'entry.edit.is_public_label',
24 'property_path' => 'isPublic',
24 ]) 25 ])
25 ->add('url', TextType::class, [ 26 ->add('url', TextType::class, [
26 'disabled' => true, 27 'disabled' => true,