Skip to content

Approval-related notifications fire incorrectly when editing entries, even if approval status doesn't change #2367

@bennemann

Description

@bennemann

If the Approve Entries field is present on GravityView's Edit Entry screen, approval notifications fire unnecessarily, even if the approval status stays the same.

Steps to Reproduce

  1. Create a notification for any of the approval events (e.g., Entry is Approved)
  2. Add the Approve Entries field to the Edit Entry screen
  3. Edit an entry where the approval status already matches the event condition (e.g., entry is already approved)
  4. Save the entry without changing the approval field

Current Behavior
The notification is triggered every time the entry is edited, regardless of whether the approval status has changed.

Expected Behavior
Notifications should only be sent if the approval status actually changes during the edit.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions