craftcms / craftcms/cms

Multiple instances of a widget can be added, ignoring `allowMultipleInstances`

Open
#2,804 1 comment 0 reactions 0 assignees View on GitHub

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
  1. Remove all widgets from Dashboard
  2. Add a widget with allowMultipleInstances returning false, e.g. the Craft Support widget
  3. Don’t refresh the page and add the same widget again
  4. Repeat (3)
  5. Result:
Craft Support Hell
Additional info
  • Craft version: 3.0.4
  • Plugins & versions: many

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.