- Issue created by @valthebald
Automatically closed - issue fixed for 2 weeks with no activity.
Entity reference translation checkboxes are in a fieldset now:
<?php
$form['reference_defaults'] = [
'#type' => 'details',
'#title' => $this->t('Entity reference translation'),
...
$form['reference_defaults']['reference_defaults'] = [
'#type' => 'checkboxes',
?>
submitForm() assumes that $form_state->getValue('reference_defaults') is an array of checkboxes value, while in fact it is an array ['reference_defaults' => <...real values>], so this code
<?php
$config->set('reference_defaults', array_keys(array_filter($form_state->getValue('reference_defaults'))));
?>
always saves an empty array.
Expected: Checked entity type stays checked after save
Actual: No entity type is checked
Mark details element $form['reference_defaults'] as non-tree
Write the patch
Active
1.0
Other Submodules
Automatically closed - issue fixed for 2 weeks with no activity.