From 637afa9e05f5b757680ba1ca112880e4db1a0687 Mon Sep 17 00:00:00 2001 From: Andrew Fontana <32223252+Kharg@users.noreply.github.com> Date: Sun, 29 Jan 2023 04:25:04 +0100 Subject: [PATCH] 2.1.0 Update - Added support for Espo 7.3.0 checkboxes --- .../src/views/fields/dynamic-checklist.js | 10 ++++----- manifest.json | 4 ++-- scripts/AfterInstall.php | 21 +++++++++++++++++++ scripts/AfterUninstall.php | 21 +++++++++++++++++++ 4 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 scripts/AfterInstall.php create mode 100644 scripts/AfterUninstall.php diff --git a/files/client/modules/dynamic-checklist/src/views/fields/dynamic-checklist.js b/files/client/modules/dynamic-checklist/src/views/fields/dynamic-checklist.js index ef62a74..316efaa 100644 --- a/files/client/modules/dynamic-checklist/src/views/fields/dynamic-checklist.js +++ b/files/client/modules/dynamic-checklist/src/views/fields/dynamic-checklist.js @@ -2,7 +2,7 @@ * This file is part of EspoCRM. * * EspoCRM - Open Source CRM application. - * Copyright (C) 2014-2019 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko + * Copyright (C) 2014-2023 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko * Website: https://www.espocrm.com * * EspoCRM is free software: you can redistribute it and/or modify @@ -102,13 +102,13 @@ define('dynamic-checklist:views/fields/dynamic-checklist', ['views/fields/array' } var dataValue = this.escapeValue(JSON.stringify(jsonItem)); var itemHtml = '
'; - itemHtml += '
'; - itemHtml += '
'; + itemHtml += '
'; itemHtml += '
'; itemHtml += ''; itemHtml += '
'; @@ -219,7 +219,7 @@ define('dynamic-checklist:views/fields/dynamic-checklist', ['views/fields/array' } displayHtml += '
'; displayHtml += '
'; - displayHtml += '=6.0.6" + ">=7.3.0" ], "releaseDate": "2020-12-01", "author": "Omar A Gonsenheim", diff --git a/scripts/AfterInstall.php b/scripts/AfterInstall.php new file mode 100644 index 0000000..0b59dfc --- /dev/null +++ b/scripts/AfterInstall.php @@ -0,0 +1,21 @@ +container = $container; + + $this->clearCache(); + } + + protected function clearCache() + { + try { + $this->container->get('dataManager')->clearCache(); + } catch (\Exception $e) { + } + } +} diff --git a/scripts/AfterUninstall.php b/scripts/AfterUninstall.php new file mode 100644 index 0000000..94a649b --- /dev/null +++ b/scripts/AfterUninstall.php @@ -0,0 +1,21 @@ +container = $container; + + $this->clearCache(); + } + + protected function clearCache() + { + try { + $this->container->get('dataManager')->clearCache(); + } catch (\Exception $e) { + } + } +}