SetupNewDashboardForm: Ensure to rerender dashlet parts with custom_url when autosubmitting

This commit is contained in:
Yonas Habteab 2022-04-22 09:30:57 +02:00
parent b358e1bb2c
commit 2732d7df66
2 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,7 @@ class DashletForm extends SetupNewDashboardForm
// When the user wishes to create a new dashboard pane, we have to explicitly reset the dashboard panes
// of the original home, so that it isn't considered as we want to move the pane even though it isn't
// supposed to when the original home contains a dashboard with the same name
// @see DashboardHome::managePanes() for details
// @see DashboardHome::manageEntries() for details
$selectedPane = $this->getPopulatedValue('pane');
if ((! $selectedPane || $selectedPane === self::CREATE_NEW_PANE)
&& ! $currentHome->hasEntry($currentPane->getName())) {

View File

@ -208,6 +208,7 @@ class SetupNewDashboardForm extends BaseDashboardForm
protected function assembleDashletElements()
{
$this->addElement('hidden', 'custom_url', ['required' => false, 'value' => 'y']);
$this->addElement('text', 'dashlet', [
'required' => true,
'label' => t('Dashlet Title'),