This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Form
Nicolas Grekas ab5e7fa706 bug #34083 [Form] Keep preferred_choices order for choice groups (vilius-g)
This PR was squashed before being merged into the 4.3 branch.

Discussion
----------

[Form] Keep preferred_choices order for choice groups

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Since 4.3 ordering of `preferred_choices` is preserved when displaying form. But this only works for flat options. When the choices are grouped, the preferred groups are in default order.

Now the preferred choice group order is derived by taking the first matching choice from `preferred_choices` and using its position to sort the groups.

Commits
-------

75404e5287 [Form] Keep preferred_choices order for choice groups
2019-11-28 12:24:09 +01:00
..
ChoiceList [Form] Keep preferred_choices order for choice groups 2019-11-28 12:22:21 +01:00
Command Add file links for described classes 2019-04-01 16:27:30 -04:00
Console Merge branch '4.2' into 4.3 2019-06-05 15:25:51 +02:00
DependencyInjection Sync "not implementing the method" deprecations messages 2019-08-01 14:51:01 +02:00
Event [EventDispatcher] swap arguments of dispatch() to allow registering events by FQCN 2019-03-14 08:32:46 +01:00
Exception [Form] TransformationFailedException: Support specifying message to display 2019-03-26 22:35:30 +01:00
Extension Merge branch '3.4' into 4.3 2019-10-28 18:07:32 +01:00
Guess Replace more docblocks by type-hints 2017-11-07 15:45:01 +01:00
Resources fix Danish translations 2019-08-09 11:35:22 +02:00
Test Merge branch '3.4' into 4.3 2019-09-19 17:51:53 +02:00
Tests bug #34083 [Form] Keep preferred_choices order for choice groups (vilius-g) 2019-11-28 12:24:09 +01:00
Util Fix inconsistent return points. 2019-08-20 15:31:17 +02:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
AbstractExtension.php Merge branch '3.4' into 4.3 2019-08-20 16:07:54 +02:00
AbstractRendererEngine.php Merge branch '3.4' into 4.2 2019-04-06 15:51:08 +02:00
AbstractType.php [Form] fix some docblocks and type checks 2019-01-30 09:09:50 +01:00
AbstractTypeExtension.php simplify the form type extension registration 2018-10-08 23:29:09 +02:00
Button.php [Form] remove leftover int child phpdoc 2019-08-05 14:35:29 +02:00
ButtonBuilder.php Fix error message according to the new regex 2019-11-22 15:36:52 +01:00
ButtonTypeInterface.php
CallbackTransformer.php Merge branch '3.4' into 4.2 2019-04-06 15:51:08 +02:00
CHANGELOG.md allow button names to start with uppercase letter 2019-11-19 08:55:12 +01:00
ClearableErrorsInterface.php [Form] Add ability to clear form errors 2018-06-25 11:51:51 +02:00
ClickableInterface.php
composer.json Bump minimal requirements 2019-08-10 23:01:55 +02:00
DataMapperInterface.php [Form] various minor fixes 2019-04-06 15:44:06 +02:00
DataTransformerInterface.php [Form] various minor fixes 2019-04-06 15:44:06 +02:00
Form.php Merge branch '3.4' into 4.3 2019-08-20 16:07:54 +02:00
FormBuilder.php Remove superfluous phpdoc tags 2019-08-14 13:59:53 +02:00
FormBuilderInterface.php [Form] update type of form $name arguments 2019-07-31 13:55:54 +02:00
FormConfigBuilder.php Merge branch '3.4' into 4.3 2019-07-31 17:03:18 +02:00
FormConfigBuilderInterface.php Remove superfluous phpdoc tags 2019-08-14 13:59:53 +02:00
FormConfigInterface.php [Form] various minor fixes 2019-04-06 15:44:06 +02:00
FormError.php Merge branch '3.4' into 4.3 2019-08-26 10:26:39 +02:00
FormErrorIterator.php Make tests support phpunit 8 2019-07-31 23:55:24 +02:00
FormEvent.php [Form] various minor fixes 2019-04-06 15:44:06 +02:00
FormEvents.php Merge branch '4.2' 2019-04-06 16:04:46 +02:00
FormExtensionInterface.php
FormFactory.php Apply php-cs-fixer rule for array_key_exists() 2019-02-23 16:06:07 +01:00
FormFactoryBuilder.php Merge branch '3.4' into 4.2 2019-04-07 15:57:20 +02:00
FormFactoryBuilderInterface.php [DI] minor docblock fixes 2017-10-24 13:40:19 +02:00
FormFactoryInterface.php Merge branch '3.4' into 4.3 2019-07-31 17:03:18 +02:00
FormInterface.php Merge branch '3.4' into 4.3 2019-08-27 09:25:30 +02:00
FormRegistry.php [Form] various minor fixes 2019-04-06 15:44:06 +02:00
FormRegistryInterface.php
FormRenderer.php Merge branch '3.4' into 4.2 2019-02-23 16:17:42 +01:00
FormRendererEngineInterface.php Merge branch '3.4' into 4.2 2019-04-06 15:51:08 +02:00
FormRendererInterface.php Merge branch '3.4' into 4.1 2019-01-16 19:21:11 +01:00
Forms.php Merge branch '4.2' 2019-04-07 15:57:40 +02:00
FormTypeExtensionInterface.php [Form] Fix @method annotation 2018-10-19 12:21:43 +02:00
FormTypeGuesserChain.php Merge branch '3.4' into 4.2 2019-04-06 15:51:08 +02:00
FormTypeGuesserInterface.php [Form] various minor fixes 2019-04-06 15:44:06 +02:00
FormTypeInterface.php [CS] Enforces null type hint on last position in phpDocs 2018-10-02 00:12:00 -03:00
FormView.php switched array() to [] 2019-01-16 10:39:14 +01:00
LICENSE update year in license files 2019-01-01 14:45:19 +01:00
NativeRequestHandler.php Merge branch '3.4' into 4.3 2019-08-07 14:28:41 +02:00
phpunit.xml.dist Bump phpunit XSD version to 5.2 2018-11-11 12:18:13 +01:00
PreloadedExtension.php Sync "not implementing the method" deprecations messages 2019-08-01 14:51:01 +02:00
README.md
RequestHandlerInterface.php [Form] Add phpdoc to RequestHandlerInterface::isFileUpload() method 2017-11-20 18:59:30 +01:00
ResolvedFormType.php synchronise the form builder docblock 2019-01-22 15:49:00 +01:00
ResolvedFormTypeFactory.php
ResolvedFormTypeFactoryInterface.php Remove superfluous phpdoc tags 2019-08-14 13:59:53 +02:00
ResolvedFormTypeInterface.php switched array() to [] 2019-01-16 10:39:14 +01:00
ReversedTransformer.php [DI] minor docblock fixes 2017-10-24 13:40:19 +02:00
SubmitButton.php [CS] Enforces null type hint on last position in phpDocs 2018-10-02 00:12:00 -03:00
SubmitButtonBuilder.php
SubmitButtonTypeInterface.php

Form Component

The Form component allows you to easily create, process and reuse HTML forms.

Resources