Skip to content

Commit 99b8b95

Browse files
authored
Merge pull request #6571 from WoltLab/62-empty-page-title-fix
Fix exception when editing system pages without a title
2 parents e9b0802 + 11ddd34 commit 99b8b95

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

wcfsetup/install/files/lib/acp/form/PageEditForm.class.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,4 +375,15 @@ public function assignVariables()
375375
'supportsCustomUrl' => $this->supportsCustomUrl,
376376
]);
377377
}
378+
379+
#[\Override]
380+
protected function validateTitle()
381+
{
382+
if ($this->page->pageType === 'system' && $this->page->requireObjectID) {
383+
// Allow an empty title for pages that dynamically generate their title based on a given ID (e.g. `ArticlePage`).
384+
return;
385+
}
386+
387+
parent::validateTitle();
388+
}
378389
}

0 commit comments

Comments
 (0)