After upgrading the bundle, you should migrate your database to remove the useless UNIQUE
index for field name
from table craue_config_setting
. The PRIMARY
index for field name
will remain.
-
If you're overriding the template
modify_form.html.twig
in your project, you probably need to adapt it to changes in the built-in form type. Before, two hidden form fieldsname
andsection
were added only to read theirvalue
variable in the template. They have been removed now. But you can still access the properties of settings in the template via thevalue
variable of eachsetting
form field:before:
{% for setting in form.settings %} {{ setting.section.vars.value }} {{ setting.name.vars.value }} {% endfor %}
after:
{% for setting in form.settings %} {{ setting.vars.value.section }} {{ setting.vars.value.name }} {% endfor %}
- If you've used the DI parameter
craue_config.configTemplate.class
, you now need to override the Twig extension with service idtwig.extension.craue_config_template
instead. - If you've used the DI parameter
craue_config.config.class
, you now need to override the service with idcraue_config
instead.