From e0955f17aef671b411128e5196442262c761e6d1 Mon Sep 17 00:00:00 2001 From: Luong Minh Luat <157108501+lmluat-axonivy@users.noreply.github.com> Date: Thu, 19 Dec 2024 09:58:23 +0700 Subject: [PATCH] =?UTF-8?q?bug/IVYPORTAL-18147-Adding-new-dashboard-dialog?= =?UTF-8?q?s-with-templates-store=E2=80=A6=20(#1322)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * bug/IVYPORTAL-18147-Adding-new-dashboard-dialogs-with-templates-store-permission-value-when-closing - setPermissionDTOs with empty list when opening new adding dashboard dialog * bug/IVYPORTAL-18147-Adding-new-dashboard-dialogs-with-templates-store-permission-value-when-closing - Handle feedback * bug/IVYPORTAL-18147-Adding-new-dashboard-dialogs-with-templates-store-permission-value-when-closing - Clean code --- .../portal/generic/bean/DashboardTemplateSelectionBean.java | 1 + 1 file changed, 1 insertion(+) diff --git a/AxonIvyPortal/portal/src/ch/ivy/addon/portal/generic/bean/DashboardTemplateSelectionBean.java b/AxonIvyPortal/portal/src/ch/ivy/addon/portal/generic/bean/DashboardTemplateSelectionBean.java index 0b7a3a48e8a..a1fd3a1c3c4 100644 --- a/AxonIvyPortal/portal/src/ch/ivy/addon/portal/generic/bean/DashboardTemplateSelectionBean.java +++ b/AxonIvyPortal/portal/src/ch/ivy/addon/portal/generic/bean/DashboardTemplateSelectionBean.java @@ -46,6 +46,7 @@ private void onAddDashboard(boolean isPublicDashboard) { private void mappingCommonDataToNewDashboard(String templateId, String dashboardId) { this.selectedDashboard.setTemplateId(templateId); + this.selectedDashboard.setPermissionDTOs(new ArrayList<>()); this.selectedDashboard.setId(dashboardId); this.selectedDashboard.setTitles(new ArrayList<>()); this.selectedDashboard.setIcon(this.isPublicDashboard ? PUBLIC_DASHBOARD_DEFAULT_ICON : PRIVATE_DASHBOARD_DEFAULT_ICON);