We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8094daf commit b488a5dCopy full SHA for b488a5d
1 file changed
src/elements/Entry.php
@@ -3011,7 +3011,7 @@ public function beforeSave(bool $isNew): bool
3011
private function maybeSetDefaultAttributes(): void
3012
{
3013
// if we're resaving, we shouldn't be setting the defaults
3014
- if ($this->resaving) {
+ if ($this->resaving || $this->getIsRevision()) {
3015
return;
3016
}
3017
@@ -3031,7 +3031,7 @@ private function maybeSetDefaultAttributes(): void
3031
!$this->_userPostDate() &&
3032
(
3033
in_array($this->scenario, [self::SCENARIO_LIVE, self::SCENARIO_DEFAULT]) ||
3034
- (!$this->getIsDraft() && !$this->getIsRevision())
+ !$this->getIsDraft()
3035
)
3036
) {
3037
// Default the post date to the current date/time
0 commit comments