From 64ee4c2ef56655b981dfb76a87800d8fd260bf47 Mon Sep 17 00:00:00 2001 From: Richard BAYET Date: Mon, 19 Nov 2018 16:35:28 +0100 Subject: [PATCH] Fixes #1186 - support web/js files relocation To be introduced in 2.3.x and 2.2.7 With expected BC break in 2.2.x because https://github.com/magento/magento2/pull/16582 does not seem to cover this particular case See issue of origin https://github.com/magento/magento2/issues/16302 --- src/module-elasticsuite-core/view/frontend/requirejs-config.js | 1 - src/module-elasticsuite-core/view/frontend/web/js/form-mini.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/module-elasticsuite-core/view/frontend/requirejs-config.js b/src/module-elasticsuite-core/view/frontend/requirejs-config.js index 39ddcf358..43fa2bb19 100644 --- a/src/module-elasticsuite-core/view/frontend/requirejs-config.js +++ b/src/module-elasticsuite-core/view/frontend/requirejs-config.js @@ -15,7 +15,6 @@ var config = { map: { '*': { - mageQuickSearch : 'Magento_Search/form-mini', quickSearch: 'Smile_ElasticsuiteCore/js/form-mini' } } diff --git a/src/module-elasticsuite-core/view/frontend/web/js/form-mini.js b/src/module-elasticsuite-core/view/frontend/web/js/form-mini.js index ad4c5c9a8..582fda262 100644 --- a/src/module-elasticsuite-core/view/frontend/web/js/form-mini.js +++ b/src/module-elasticsuite-core/view/frontend/web/js/form-mini.js @@ -24,7 +24,7 @@ define([ 'Magento_Ui/js/lib/knockout/template/loader', 'jquery/ui', 'mage/translate', - 'mageQuickSearch' + 'Magento_Search/form-mini' ], function (ko, $, _, mageTemplate, priceUtil, templateLoader) { 'use strict';