Skip to content

Commit 1355621

Browse files
committed
1 parent 65ed66d commit 1355621

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

wcfsetup/install/files/lib/acp/action/DashboardConfigureAction.class.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,19 @@ private function getForm(): Psr15DialogForm
6868
static::class,
6969
WCF::getLanguage()->get('wcf.acp.dashboard.configure')
7070
);
71+
72+
$boxOptions = $this->getBoxOptions();
73+
$selectedBoxNames = \array_filter(
74+
$this->getSelectedBoxNames(),
75+
fn(string $boxName) => isset($boxOptions[$boxName])
76+
);
77+
7178
$form->appendChildren([
7279
$this->getConfigurationFormField()
7380
->id('boxes')
7481
->required()
75-
->options($this->getBoxOptions(), false, false)
76-
->value($this->getSelectedBoxNames()),
82+
->options($boxOptions, false, false)
83+
->value($selectedBoxNames),
7784
]);
7885

7986
$form->build();

0 commit comments

Comments
 (0)