1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00
This commit is contained in:
Ryan Cramer
2020-04-29 17:49:25 -04:00
parent 6ae08c901b
commit 3ab31805c6

View File

@@ -374,7 +374,7 @@ class FieldtypeFile extends FieldtypeMulti implements ConfigurableModule {
if($isNew) {
$pagefile->createdUser = $this->wire('user');
$pagefile->created = time();
if(!$pagefile->isTemp()) $pagefile->created = time();
}
if($isChanged || $isNew) {
@@ -382,7 +382,7 @@ class FieldtypeFile extends FieldtypeMulti implements ConfigurableModule {
unset($changes['hash'], $changes['sort'], $changes['modified'], $changes['modified_users_id']);
if($isNew || count($changes)) {
$pagefile->modifiedUser = $this->wire('user');
$pagefile->modified = time();
if(!$pagefile->isTemp()) $pagefile->modified = time();
}
}