Issue Bug Under Review Stale

#110206Switching between NULL and 0 is not persisted for nullable selectSingle fields

Jan Kornblum 07/16/26, 09:06 updated 09/03/26, 06:11

Description

A nullable selectSingle field cannot be changed directly between NULL and 0.

Database:

price_type int(11) unsigned DEFAULT NULL,

TCA:

'price_type' => [
    'exclude' => true,
    'label' => 'Price type',
    'config' => [
        'type' => 'select',
        'renderType' => 'selectSingle',
        'minitems' => 1,
        'maxitems' => 1,
        'nullable' => true,
        'default' => null,
        'items' => [
            ['label' => '', 'value' => null],
            ['label' => 'Regular', 'value' => 0],
            ['label' => 'Member', 'value' => 1],
            ['label' => 'Special', 'value' => 2],
        ],
    ],
],

Open the record in the TYPO3 backend and save the following changes.

Does not work (no changes are persisted):

NULL -> 0
0 -> NULL

Works as expected:

NULL -> 1
1 -> NULL

0 -> 1
1 -> 0

NULL -> 2
2 -> NULL

0 -> 2
2 -> 0

Only switching directly between NULL and 0 and vice versa does not persist the change. But changing the selected value from NULL to 0 and vice versa should be detected as a change and persisted correctly.

Reviews 1

History 25

  1. Jan Kornblum changed Tags tca, nullable, selectSingle, null, 0 tca, nullable, selectSingle, persist, null, 0 <span data-processor="relativetime" data-value="2026-07-16T09:07:06+00:00" > 07/16/26, 09:07 </span>