From 30243146802b1b40245e9edcd96c07dfb79dadf1 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Tue, 25 Jun 2019 11:16:43 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#905 --- wire/core/PagesEditor.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wire/core/PagesEditor.php b/wire/core/PagesEditor.php index c908c9f2..f8810ea3 100644 --- a/wire/core/PagesEditor.php +++ b/wire/core/PagesEditor.php @@ -1164,6 +1164,8 @@ class PagesEditor extends Wire { if($copy->hasField($field)) $copy->trackChange($field->name); } + $copy->created = time(); + $copy->modified = time(); $this->pages->cloneReady($page, $copy); $this->cloning++; $options['ignoreFamily'] = true; // skip family checks during clone