From 92a9fb1497e59be34c8e68db61c68722fe808329 Mon Sep 17 00:00:00 2001 From: "r.ratsun" Date: Mon, 3 Oct 2022 17:12:34 +0300 Subject: [PATCH] . --- .../metadata/app/clientClassReplaceMap.json | 5 -- .../views/admin/link-manager/modals/edit.js | 70 ------------------- composer.json | 2 +- 3 files changed, 1 insertion(+), 76 deletions(-) delete mode 100644 app/Resources/metadata/app/clientClassReplaceMap.json delete mode 100644 client/modules/dam/src/views/admin/link-manager/modals/edit.js diff --git a/app/Resources/metadata/app/clientClassReplaceMap.json b/app/Resources/metadata/app/clientClassReplaceMap.json deleted file mode 100644 index d9400246..00000000 --- a/app/Resources/metadata/app/clientClassReplaceMap.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "views/admin/link-manager/modals/edit": [ - "dam" - ] -} \ No newline at end of file diff --git a/client/modules/dam/src/views/admin/link-manager/modals/edit.js b/client/modules/dam/src/views/admin/link-manager/modals/edit.js deleted file mode 100644 index d7f201f5..00000000 --- a/client/modules/dam/src/views/admin/link-manager/modals/edit.js +++ /dev/null @@ -1,70 +0,0 @@ -/* - * This file is part of AtroDAM. - * - * AtroDAM - Open Source DAM application. - * Copyright (C) 2020 AtroCore UG (haftungsbeschränkt). - * Website: https://atrodam.com - * - * AtroDAM is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * AtroDAM is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with AtroDAM. If not, see http://www.gnu.org/licenses/. - * - * The interactive user interfaces in modified source and object code versions - * of this program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU General Public License version 3. - * - * In accordance with Section 7(b) of the GNU General Public License version 3, - * these Appropriate Legal Notices must retain the display of the "AtroDAM" word. - * - * This software is not allowed to be used in Russia and Belarus. - */ - -Espo.define('dam:views/admin/link-manager/modals/edit', 'class-replace!dam:views/admin/link-manager/modals/edit', function (Dep, Index, Model) { - - return Dep.extend({ - - hideFieldIfAsset: function () { - if (this.model.get('linkType') === 'manyToMany' && this.model.get('entityForeign') === 'Asset') { - this.model.set('link', 'assets'); - this.hideField('link'); - } - - if (this.model.get('linkType') === 'manyToMany' && this.model.get('entity') === 'Asset') { - this.model.set('linkForeign', 'assets'); - this.hideField('linkForeign'); - } - }, - - afterRender: function () { - this.handleLinkTypeChange(); - - this.getView('linkType').on('change', function (m) { - this.handleLinkTypeChange(); - this.populateFields(); - this.hideFieldIfAsset(); - }, this); - this.getView('entityForeign').on('change', function (m) { - this.populateFields(); - this.hideFieldIfAsset(); - }, this); - - this.getView('link').on('change', function (m) { - this.handleLinkChange('link'); - }, this); - this.getView('linkForeign').on('change', function (m) { - this.handleLinkChange('linkForeign'); - }, this); - }, - - }); -}); - diff --git a/composer.json b/composer.json index 96e9a648..9d4726b5 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "AtroDAM. Open source DAM application.", "require": { "ext-fileinfo": "*", - "atrocore/core": "~1.4.91" + "atrocore/core": "~1.4.107" }, "conflict": { "atrocore/pim": "<1.5.23 || >=1.6.0"