-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScopeBuilder does not work with boolean type #1855
Comments
@mvorisek There is another issue with ScopeBuilder and
As type strictness has increased in atk4/data, the getOption function passing a ui/src/Form/Control/ScopeBuilder.php Line 689 in 28fc624
If you don't require $value to be string, it works as intended. |
P.S. Only if is_folder = false is converted to "0" in string, the radio buttons of the rule are properly pre-selected to "No". So a proper type conversion from boolean to string for $value in this case is required to make it work properly. |
Since #1915 upgrade there is another known issue - enum/checkbox is broken, boolean/radio has no support by upstream nightswinger/vue-fomantic-ui#16 lib (see |
When I open
demos/form-control/scope-builder.php
demo and change the model toAtk4\Ui\Demos\File
which hasboolean
field and then:click/add that boolean field:
and click
Save
(on the ScopeBuilder demo) I get:The text was updated successfully, but these errors were encountered: