From deb5827d01d5bb3cdda843bc1f88c5650704c69e Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 27 Feb 2020 16:53:38 +0300 Subject: [PATCH] feat(admin-plugin): fix issue with saving field `created_at` --- site/plugins/admin/app/Controllers/EntriesController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/site/plugins/admin/app/Controllers/EntriesController.php b/site/plugins/admin/app/Controllers/EntriesController.php index 6928522a..dcaf98d2 100644 --- a/site/plugins/admin/app/Controllers/EntriesController.php +++ b/site/plugins/admin/app/Controllers/EntriesController.php @@ -869,6 +869,7 @@ class EntriesController extends Controller $entry = $this->entries->fetch($id); Arr::delete($entry, 'slug'); Arr::delete($entry, 'modified_at'); + Arr::delete($entry, 'created_at'); // Merge entry data with $data $result_data = array_merge($entry, $data);