Closed goetas closed 12 months ago
Hi @goetas, are you ok doing the PR ?
There is
{% set _use_icheck = sonata_config.getOption('use_icheck') %}
somewhere else in the code, so sonata_config.getOption
should help you for the check you're looking for.
Subject
The
sonata_type_choice_field_mask_widget
block insrc/Resources/views/Form/form_admin_fields.html.twig
(https://github.com/sonata-project/SonataAdminBundle/blob/0bad35954a517a6b1197ef62c00eccbaea65881f/src/Resources/views/Form/form_admin_fields.html.twig#L476) assumes that the user has alwaysicheck
enabled when theexpanded
option istrue
.When
icheck
is disabled, theifChecked
event is never triggered.The block of code
should be something like
(i'm not sure how to get in there the
icheck_enabled
parameter...)