Skip to content

fix: duplicate dashboard widget#59335

Open
mykh-hailo wants to merge 2 commits intonextcloud:masterfrom
mykh-hailo:fix/duplicate-dashboard-widget
Open

fix: duplicate dashboard widget#59335
mykh-hailo wants to merge 2 commits intonextcloud:masterfrom
mykh-hailo:fix/duplicate-dashboard-widget

Conversation

@mykh-hailo
Copy link
Copy Markdown

@mykh-hailo mykh-hailo commented Mar 31, 2026

Summary

This PR fixes a dashboard layout edge case where duplicate widget IDs can be sent to the layout update endpoint.
Even though the UI only allows selecting a widget once, crafted requests could still submit duplicates (e.g. layout[]=files&layout[]=files). This caused duplicated entries to be persisted.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: mykh-hailo <kristianderonta0205@gmail.com>
@mykh-hailo mykh-hailo requested a review from a team as a code owner March 31, 2026 09:43
@mykh-hailo mykh-hailo requested review from Altahrim, CarlSchwan, leftybournes and provokateurin and removed request for a team March 31, 2026 09:43
Copy link
Copy Markdown
Contributor

@susnux susnux left a comment

Choose a reason for hiding this comment

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

Thank you for your pull request!
I have just one comment:

@susnux susnux added this to the Nextcloud 34 milestone Mar 31, 2026
Signed-off-by: mykh-hailo <kristianderonta0205@gmail.com>
@susnux
Copy link
Copy Markdown
Contributor

susnux commented Mar 31, 2026

/backport to stable33

@susnux
Copy link
Copy Markdown
Contributor

susnux commented Mar 31, 2026

/backport to stable32

@susnux susnux self-assigned this Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashboard widget can be added multiple times

2 participants