Skip to content

Conversation

RapotOR
Copy link
Contributor

@RapotOR RapotOR commented Oct 27, 2011

If the choices property is equal to array(), the EntityChoiceList don't use empty choices and try query_builder or findAll.

We should use false as default instead of array() to be able to have an empty list if a custom filter give an empty result. With array() as default, the EntityType populates choices with findAll even if our result was empty; and it is not expected.

…nd try query_builder or findAll. We should use false instead of array() to mean that we don't use the choices property.
…nd try query_builder or findAll. We should use false instead of array() to mean that we don't use the choices property.
@fabpot
Copy link
Member

fabpot commented Oct 28, 2011

As this is a bug fix, can you open a new PR on the 2.0 branch? Also, if you can add some unit tests, that would be even better. Thanks.

@RapotOR
Copy link
Contributor Author

RapotOR commented Oct 28, 2011

New PR created on branch 2.0: #2504

@RapotOR RapotOR closed this Oct 28, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants