-
Notifications
You must be signed in to change notification settings - Fork 638
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
$this->isFresh($element) seems to not be working #4586
Comments
As of Craft 3.2, entries are now created in an ephemeral “unsaved draft” state up until the first time you click “Save Entry”. So by the time |
Thanks for the explanation. What will happen with Craft's built-in Number Field, which has a |
Ah, thanks for pointing that out, this issue is fine. I’ll fix… |
Fixed for the next release. |
Description
When checking
$this->isFresh($element)
in my plugins, it's suddenly never true, even for brand new entries.For example:
Steps to reproduce
The quickest way to test is with a standard Number field, which uses
$this->isFresh($element)
to check if the default value should be used.Additional info
The text was updated successfully, but these errors were encountered: