TocTypeForm: Correct #default value for number_path_truncate

Created on 6 March 2025, 8 days ago

Problem/Motivation

The #default_value key is not correct for number_path_truncate. So it will not reflect the current config correctly.

    $form['options']['numbering']['number_path_truncate'] = [
      '#title' => $this->t('Truncate the numbering path to only display parents.'),
      '#type' => 'checkbox',
      '#default_value' => $options['number_path'],
    ];

Steps to reproduce

Try to change the config of number_path_truncate. The form will not reflect the value correctly.

Proposed resolution

Fix #detault_value in the form.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany sunlix Wesel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024