#109867Page creation wizard silently creates pages with empty title and fallback slug when Next is clicked before field blur
Description
Summary
In the page creation wizard (“Create new page”, v14+ modal flow), typing a title and clicking Next on the “Page Setup” step before the title field’s change/@blur@ event has fired silently creates a page
with title='' and an auto-generated fallback slug. No validation error is raised.
Steps to reproduce
- Drag a new page into the page tree (or open the page wizard via the toolbar button).
- Step 1: pick a parent. Step 2: pick doktype. Step 3: “Page Setup”.
- Type a title into the Page title field.
- Click Next immediately — do not press Tab or click elsewhere first.
- Confirm and create.
Expected
Either the page is created with the typed title, or the wizard rejects the submission with a “title is required” validation error.
Actual
The page is created with title='' and a fallback slug. The typed title is silently discarded.
Root cause
In typo3/sysext/backend/Resources/Public/JavaScript/page-wizard/steps/form-engine-step.js (source: Build/Sources/TypeScript/backend/page-wizard/steps/form-engine-step.ts):
- FormEngine renders each editable field as a visible input (carrying
data-formengine-input-name) plus a hidden mirror input (carryingname). The visible→hidden sync runs in achangehandler
(FormEngineValidation.updateInputField()) and only fires on blur. Clicking Next in the same tick leaves the hidden mirror empty. FormEngineStep.getValue()readsFormData(the hidden mirrors) and then strips every empty entry:
return Object.fromEntries(
Array.from(formData.entries()).filter(([, value]) => value !== '')
);
…so the empty title silently disappears from the POST to wizard_submit. Server-side, PageWizardProvider::handleSubmit() then lets DataHandler fill the missing field from TCA defaults without raising an
error.
Why no test caught this
PageWizardProviderTestcallshandleSubmit()directly with a well-formed payload.- The Playwright fixture
Build/tests/playwright/fixtures/page-wizard.tsdoesinput.press('Tab')between filling the title and clicking Next (comment:// triggeres change event), which masks the race.
Suggested fixes
- Primary: in
FormEngineStep.getValue(), force a synchronous visible→hidden sync before readingFormData— iterate every[data-formengine-input-name]inside the wizard form and call
@TYPO3.FormEngine.Validation.updateInputField(name)@ (or dispatch achangeevent on each visible input). - Drop the empty-value filter in
getValue(). Empty values are meaningful and must be sent so server-side validation runs as in the regular FormEngine flow. - have
PageWizardProvider::handleSubmit()reject submissions missing TCA-required fields instead of relying onDataHandlerdefaults.
Reviews 1
Related issues 1
History 12
-
Wolfgang Klinger changed Related to #109369 <span data-processor="relativetime" data-value="2026-05-24T10:20:36+00:00" > 05/24/26, 10:20 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 97621 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-13T16:13:17+00:00" > 11/13/26, 16:13 </span>