From 11ddd34d1616baa11632798a2026a1e9204b5c8f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 8 Feb 2026 17:31:01 +0100 Subject: [PATCH] Fix exception when editing system pages without a title ref https://www.woltlab.com/community/thread/316276-wartungs-zugang-in-database-site/ --- .../install/files/lib/acp/form/PageEditForm.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php b/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php index e794ee91aa..4ac94efb77 100644 --- a/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageEditForm.class.php @@ -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(); + } }