From 6ac630cb99ae5313dee29fd7407f18f66ae0afa9 Mon Sep 17 00:00:00 2001 From: Adil Chehabi Date: Tue, 28 Jun 2022 07:47:43 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20DB=20erro=20when=20instal?= =?UTF-8?q?ling=20Iconset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/Helpers.php | 3 +++ updates/version.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/classes/Helpers.php b/classes/Helpers.php index 4b54c17..9fa25bf 100644 --- a/classes/Helpers.php +++ b/classes/Helpers.php @@ -117,6 +117,9 @@ public static function installIconSet($prefix) $iconData['created_at'] = now()->toDateTimeString(); $iconData['updated_at'] = now()->toDateTimeString(); + // Not used in DB + unset($iconData['lastModified']); + $iconsToSave[] = $iconData; } diff --git a/updates/version.yaml b/updates/version.yaml index ddde5c3..ad251c3 100755 --- a/updates/version.yaml +++ b/updates/version.yaml @@ -21,3 +21,5 @@ - upgrade_icon_sets_table.php 3.0.0: - 'OCMS 3 compatible version' +3.0.1: + - 'Fix DB erro when installing Iconset'