Dashboard: Don't merge already existing dashlets

fixes #5203
This commit is contained in:
Johannes Meyer 2024-08-13 11:37:12 +02:00
parent d06ce98d2f
commit 81a3be74f3
1 changed files with 6 additions and 4 deletions

View File

@ -147,15 +147,17 @@ class Dashboard extends AbstractWidget
if ($dashboardPane !== null) {
$key = $dashboardPane->getLabel();
}
$pane = null;
if ($this->hasPane($key)) {
$panes[$key] = $this->getPane($key);
$pane = $this->getPane($key);
} else {
$panes[$key] = new Pane($key);
$pane = new Pane($key);
$panes[$key] = $pane;
$panes[$key]->setTitle($part->title);
}
$panes[$key]->setUserWidget();
$pane->setUserWidget();
if ((bool) $part->get('disabled', false) === true) {
$panes[$key]->setDisabled();
$pane->setDisabled();
}
} else {
list($paneName, $dashletName) = explode('.', $key, 2);