i've reproduced this issue with clarkwinkelmann/flarum-ext-predefined-avatars
, but i'm getting this on other extensions of mine.
for example:
the setting Default avatar
has a default value of none
. on save, an empty string is saved instead of none. if i select the option, after switching, the correct value (none) is saved.
steps:
- install and enable the extension
- switch
Only allow predefined avatars
- save changes
- check settings table in db
- find
predefinedAvatarsDefault
https://github.com/clarkwinkelmann/flarum-ext-predefined-avatars/blob/main/js/src/admin/index.ts#L32