Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug/IVYPORTAL-18147-Adding-new-dashboard-dialogs-with-templates-store… #1322

Conversation

lmluat-axonivy
Copy link
Contributor

  • setPermissionDTOs with empty list when opening new adding dashboard dialog

…-permission-value-when-closing

- setPermissionDTOs with empty list when opening new adding dashboard dialog
@@ -46,6 +47,7 @@ private void onAddDashboard(boolean isPublicDashboard) {

private void mappingCommonDataToNewDashboard(String templateId, String dashboardId) {
this.selectedDashboard.setTemplateId(templateId);
this.selectedDashboard.setPermissionDTOs(Collections.emptyList());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to new ArrayList<>() instead.

Reason: Returns an empty list (immutable). This list is serializable.

@lmluat-axonivy lmluat-axonivy merged commit e0955f1 into master Dec 19, 2024
4 checks passed
@lmluat-axonivy lmluat-axonivy deleted the bug/IVYPORTAL-18147-Adding-new-dashboard-dialogs-with-templates-store-permission-value-when-closing branch December 19, 2024 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants