#109667Site Settings editor: cannot add entries to an empty stringlist
Description
The Settings Editor backend module renders the `+` (add) and `-` (remove)
buttons as part of each row of a `stringlist` setting. When the list is
empty — either because the setting has no `default` declared or because
the editor has removed every row — no row is rendered, so no button is
rendered either. The user has no UI to add a first entry.
See `Build/Sources/TypeScript/backend/settings/type/stringlist.ts`:
the `render()` method only emits `value.map((v, i) => this.renderItem(v, i))`.
Steps to reproduce
1. Define a site setting of type `stringlist` without a `default`
(or with `default: []`):
settings:
mySetting:
type: stringlist
label: My stringlist
2. Open the Site Settings editor in the TYPO3 backend for any site.
3. Observe that the mySetting row renders an empty table and no button.
Alternative reproduction path (works even if the setting has a default):
1. Open a site with a declared stringlist default or any custom stringlist setting.
2. Click the – button on every entry until the list is empty.
3. Observe that the only recovery is the “Reset setting” gear icon,
which reverts to the declared default — impossible if no default
is declared.
Current workaround
- Click “Reset setting” (gear icon) — only works if a default is declared.
- Edit config/sites/<identifier>/settings.yaml directly on disk.</identifier>
Expected behaviour
The editor should always offer a way to add a first entry to a
stringlist, regardless of the current list length or whether a
default was declared.
Proposed solution
When value.length === 0, render a standalone “Add entry” button.
Clicking it inserts the first (empty) entry and the normal per-row
controls take over from there.
Affected file:
Build/Sources/TypeScript/backend/settings/type/stringlist.ts
Releases: main, 13.4
Reviews 3
History 411
-
Wolfgang Klinger changed description <span data-processor="relativetime" data-value="2026-04-21T11:17:04+00:00" > 04/21/26, 11:17 </span>
-
Wolfgang Klinger changed description <span data-processor="relativetime" data-value="2026-04-21T11:18:54+00:00" > 04/21/26, 11:18 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 93778 status
NewUnder Review <span data-processor="relativetime" data-value="2026-04-21T11:40:49+00:00" > 04/21/26, 11:40 </span> -
Gerrit Code Review pushed patch set 2 for main to change 93778 <span data-processor="relativetime" data-value="2026-04-22T06:50:19+00:00" > 04/22/26, 06:50 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 93778 <span data-processor="relativetime" data-value="2026-04-23T06:39:26+00:00" > 04/23/26, 06:39 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 93778 <span data-processor="relativetime" data-value="2026-04-23T07:51:44+00:00" > 04/23/26, 07:51 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 93778 <span data-processor="relativetime" data-value="2026-04-23T08:05:20+00:00" > 04/23/26, 08:05 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 94556 <span data-processor="relativetime" data-value="2026-06-23T15:11:17+00:00" > 06/23/26, 15:11 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 94557 <span data-processor="relativetime" data-value="2026-06-23T15:11:28+00:00" > 06/23/26, 15:11 </span>
-
Wolfgang Klinger commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-06-23T17:40:12+00:00" > 06/23/26, 17:40 </span> -
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-08-11T08:46:50+00:00" > 08/11/26, 08:46 </span>
Applied in changeset commit:c2a119eb8c592f02662aea097a0edbcb5574f113.