Multiple instances of a widget can be added, ignoring `allowMultipleInstances`
Open
Nobody has claimed this yet.
bug
dashboard 🖥
severity:minor
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
Steps to reproduce
- Remove all widgets from Dashboard
- Add a widget with
allowMultipleInstancesreturning false, e.g. the Craft Support widget - Don’t refresh the page and add the same widget again
- Repeat (3)
- Result:
Additional info
- Craft version: 3.0.4
- Plugins & versions: many
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Dashboard widget flow described in the issue with a widget whose allowMultipleInstances returns false, without refreshing between additions. Trace the code handling widget creation and instance checks; done means repeated additions are prevented for such widgets while other widgets can still be added normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100