Skip to content

createFormOptions leading to infinite loop… #14737

Answered by ModestasV
gregoryloichot asked this question in Help
Discussion options

You must be logged in to vote

This is expected since you are recursively calling this.

getFormSchema() contains your Select that calls getFormSchema() - this causes an infinite loop.

To avoid this, add a property to the getFormSchema() to remove the select. For example, getFormSchema($withSelect = true) and call it with that parameter set to false in your Select option form.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gregoryloichot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants