Closed m3rlo87 closed 1 month ago
In Orchid\Screen\Screen class, in function fillPublicProperty each function is used to iterate properties.
Laravel Each function stop iterating if the callback returns false.
Thank you for reaching out, and I apologize for the delay in response. At the moment, I don't seem to notice the issue you mentioned. It's possible that I have already addressed it earlier but forgot to mention it here.
Describe the bug If an item with the Boolean value false is returned in the return of the query function of a screen, the autocompletion of public properties fails.
To Reproduce
Define the layout function by printing the value of $this->var2
Expected behavior string "example1" is expected.
Screenshots
![image](https://github.com/orchidsoftware/platform/assets/115902792/4d1bf5b2-c6fb-4842-b326-af107b290f3a)
Server (please complete the following information):
Additional context If the array returning from query function contains a boolean false value, the Autocompleting Public Properties does not work and values are not set to public properties.