hofff / contao-content-navigation

Navigation for Contao.
GNU Lesser General Public License v3.0
4 stars 3 forks source link

Default values for tl_content.hofff_toc_max_level inconsistent #21

Closed Defcon0 closed 2 years ago

Defcon0 commented 3 years ago

Hello,

in tl_content the default value definition for the field hofff_toc_max_level is inconsistent:

    'label'     => &$GLOBALS['TL_LANG']['tl_content']['hofff_toc_max_level'],
    'inputType' => 'select',
    'default'   => '6',
    'exclude'   => true,
    'options'   => ['1', '2', '3', '4', '5', '6'],
    'eval'      => ['tl_class' => 'w50'],
    'sql'       => 'int(1) UNSIGNED NOT NULL default 2',

In sql it should also be 6, right? In wouldn't be a BC break because it only takes effect for new records.

Would it be possible to change the sql default value to 6?

Bye Defcon0

dmolineus commented 2 years ago

Fixed in release 1.1.4