fix: [settings] numeric fields in settings didn't show current value

dependabot/npm_and_yarn/webroot/theme/braces-3.0.3
iglocska 2024-05-15 13:13:42 +02:00
parent 18b322400a
commit eae074ef73
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@
'type' => 'number', 'type' => 'number',
'min' => '0', 'min' => '0',
'step' => 1, 'step' => 1,
'value' => isset($setting['value']) ? h($setting['value']) : '',
'id' => h($settingId), 'id' => h($settingId),
'data-setting-name' => h($settingName), 'data-setting-name' => h($settingName),
'aria-describedby' => h("{$settingId}Help") 'aria-describedby' => h("{$settingId}Help")