[3.x] Limit when values of a select is an entity#7742
Conversation
|
Limit is for maximum number of options to be selected, not for limiting number of choices. |
|
@JarJak, I think you got the wrong one or the application works incorrectly. For yaml values, this limit is applied to limit the number of available options and not the number of selections. bolt/src/Form/Resolver/Choice.php Lines 114 to 122 in 7a3a498 |
So yeah you are right, just the docs are not clear here :/ |
|
Looks like tests need an update too :) |
|
@JarJak Up-to-date tests. |
|
Thank you @romulo1984 ! |
|
Thank you, @JarJak When is the next release expected to go out? |
The use of the limit, in a field of type select, only happens when the values are of type Yaml. This small change makes it possible to use threshold when the value is an entity.
A major problem that can occur with the lack of this feature is when a filter is not used and returns many results. Because there is no limit, the query may break the application and return a fatal error.
Usage
If the property is not specified, the default limit of 500 is considered.