Skip to content

on activation, clear out events so they don't stack up #16693

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

Merged
merged 2 commits into from
Feb 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release Notes for Craft CMS 4

## Unreleased

- Fixed a bug where multiple “New file uploaded.” notifications could be shown at once. ([#16688](https://github.com/craftcms/cms/issues/16688))

## 4.14.5 - 2025-02-11

- Fixed a bug where multi-site elements’ search indexes could be updated twice.
Expand Down
1 change: 1 addition & 0 deletions src/elements/actions/ReplaceFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function getTriggerHtml(): ?string
settings.fileInput = \$fileInput;
settings.paramName = 'replaceFile';
settings.replace = true;
settings.events = {};

const fileuploaddone = settings.events?.fileuploaddone;
settings.events = Object.assign({}, settings.events || {}, {
Expand Down