sjelfull / craft-audit

Audit log for Craft 3
https://superbig.co
Other
20 stars 11 forks source link

Using isNew property to check for newly created Element #67

Closed sijones-uk closed 1 year ago

sijones-uk commented 2 years ago

Description

Since Craft 3.7.5, the isNew property is no longer reliable when determining whether the entry is being saved for the first time. It is recommended to use the newly created (as of Craft 3.7.5) firstSave property instead.

Steps to reproduce

  1. Line 240 in the Audit class uses the isNew property to check if the Element is newly created

Additional info

sjelfull commented 1 year ago

3.0.0 is out with this fix now :)