Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions wcfsetup/install/files/lib/acp/form/PageEditForm.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,15 @@ public function assignVariables()
'supportsCustomUrl' => $this->supportsCustomUrl,
]);
}

#[\Override]
protected function validateTitle()
{
if ($this->page->pageType === 'system' && $this->page->requireObjectID) {
// Allow an empty title for pages that dynamically generate their title based on a given ID (e.g. `ArticlePage`).
return;
}

parent::validateTitle();
}
}