Skip to content
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

[4.x]: Missing Info on Element hard_delete on Event EVENT_AFTER_DELETE_ELEMENT #13280

Closed
HigumaSan4050 opened this issue Jun 5, 2023 · 2 comments
Assignees

Comments

@HigumaSan4050
Copy link

What happened?

Description

When event EVENT_AFTER_DELETE_ELEMENT is fired the hardDelete Flag is always false. Even on "Delete permanently"

Steps to reproduce

  1. create a entry
  2. delete the entry
    Event EVENT_AFTER_DELETE_ELEMENT fired. event->element->hardDelete = false
  3. switch status button to "Trashed"
  4. "Delete permanently" the entry
    Event EVENT_AFTER_DELETE_ELEMENT fired. event->element->hardDelete = false

Expected behavior

when the element is permanently deleted, property 'hardDelete' should be true

Actual behavior

Craft CMS version

4.4.13

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@i-just
Copy link
Contributor

i-just commented Jun 6, 2023

Hi, thanks for reporting! I raised a PR for this.

@brandonkelly
Copy link
Member

Craft 4.4.14 is out with the fix for this. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants