Hook fires once for every field within the Entry
Open
Nobody has claimed this yet.
bug
- Dominant language
- PHP
- Stars
- 84
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Description
Hook will fire once for every type of field contained within the Entry.
Steps to reproduce
- Sender class : craft\elements\Entry
- Event name : afterSave
- Filtered out drafts, revisions, propagations
- Debounce key (doesn't matter, but setting it as event.sender.uri does bring it down from "a lot" to 2 since the uri is NULL)
Additional info
- Craft version: 5.4.5.1
- PHP version: 8.3.4
- Database driver & version: MariaDB 10.11.9
- Plugins & versions:
- Neo 5.2.7
- Webhooks 3.1.0
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 at the afterSave event handling for craft\elements\Entry and reproduce the report with the listed Craft, PHP, MariaDB, Neo, and Webhooks versions. Verify how many times the hook fires for a single Entry and whether filtering drafts, revisions, and propagations changes that count; done means the event fires once per Entry rather than once per field.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mariadb, php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100