Internally work with `null` in SelectFormField
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 4 May 2023 08:19:53 +0000 (10:19 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 4 May 2023 08:25:47 +0000 (10:25 +0200)
commit20e4829bd4f34043095ca64f115cb68dacbcd2db
treec7ba7f85b9baada48ed62f8cd4cb7116af866048
parent7b871dfa641df59e8a52e590f5f66b7f16fe41e2
Internally work with `null` in SelectFormField

Convert the empty string to `null` immediately when reading the data to allow
custom validators to check for the `null` value instead of the empty string.
wcfsetup/install/files/lib/system/form/builder/field/SelectFormField.class.php